Skip to content

SVG Icon ​

SCASvgIcon renders one icon from the library's typed set (IconName, see Icons: phosphor/… and generic/…). An unknown name renders phosphor/question and logs a warning; an empty name renders nothing. The icon is decorative (aria-hidden).

Props ​

PropTypeDefaultDescription
iconIconName—Icon name. Required.
sizestring'20px'Width and height, any CSS length.
mirrorX / mirrorYbooleanfalseFlip horizontally / vertically.
colorstring—A fixed colour (any CSS colour or var(--…)). Neither a container nor a hover rule overrides it.

Colour ​

Every icon paints with currentColor; the default is var(--color-semantic-neutral-m1). The icon reads --sca-icon-color, so any container can recolour its icons. In SCSS use @include Globals.icon-color($color) on the icon or its container, and @include Globals.icon-clickable for the pointer cursor and the blue hover; never fill or stroke.

Size ​

Colour prop and container colour ​

Weights ​

Mirror ​