Icon API
API reference docs for the Stash Icon
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import Icon from '@leaflink/stash/Icon.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
name | IconName | - | The filename of the icon that should be displayed |
dense | boolean | - | |
id | string | '() => uniqueId(ll-icon-)' | |
size | IconSize | standard | The size of the icon Options: large (32x32px), default (24x24px), dense (20x20px), small (14x14px). |
small | boolean | - | ` * @deprecated Use the `size` prop with value "small" instead |
staticPath | string | '' | Icon's custom static path. It'll default to either the staticPath defined on the library installation or '/static' if none are provided. |
title | string | '' | Accessible, short-text description for the icon. Not rendered as part of the graphic, but browsers usually display it as a tooltip and screen readers use this. |
Slots
None
Events
None