| name |
Required:
Name of the icon either as CSS var (e.g. --as-icon-document-solid) or without --as-icon- prefix. Name of the icon must be defined as CSS variable and contain SVG code as base64 string.
|
string |
| size |
Optional:
Size of the icon component. Defaults to size "m"
|
xs | s | m | default | l | xl | xxl | xxxl |
| color |
Optional:
Colour of the icon. Colour can be any valid colour by name, hex value or passed as CSS var. Defaults to --as-color-text
|
string |
| label |
Optional:
An accessible label for the icon. If no label is supplied, the icon is hidden from assistive technology.
|
string |
| flip-x |
Optional:
Flips icon image horizontally. Can be used together with [flip-y] property.
|
string |
| flip-y |
Optional:
Flips icon image vertically. Can be used together with [flip-x] property.
|
string |
| rotate |
Optional:
Rotates icon by whatever angle is specified. Numeric value can be in [deg], [turns] or [rad]. Can be a negative value. Unit must be specified.
|
number + unit |
| image |
Optional:
When present renders icon as image element. Useful when we SVG's we hold as CSS variables were multi-colour initially.
|
string |