Appearance
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
| Prop | Type | Default | Description |
|---|---|---|---|
icon | IconName | — | Icon name. Required. |
size | string | '20px' | Width and height, any CSS length. |
mirrorX / mirrorY | boolean | false | Flip horizontally / vertically. |
color | string | — | 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.