Icon
Be iconic.
Example
Props
đšī¸ standard props
name string
The name of the material design icon.
tabindex number | null
Optional tabindex for accessibility.
undefinedclass string
Optional additional classes to apply to the icon.
undefinedđ¨ style props
icon-size size
The font size of the icon.
icon-color color
The color of the icon.
icon-cursor cursor
The cursor style when the icon is clickable.
pointericon-pointer-events events
Controls whether the icon is interactive or not.
noneicon-height size
The height of the icon container.
icon-width size
The width of the icon container.
icon-active-color color
The color of the icon on click.
rgb(var(--global-color-primary-600))icon-hover-color color
The color of the icon on hover or focus.
rgb(var(--global-color-primary-500))Slots
Events
onclick
Triggered when the icon is clicked or pressed.
| Attribute | Type | Description |
|---|---|---|
| event | KeyboardEvent | The keyboard event that triggered the action. |