IconLabel API
API reference docs for the Stash IconLabel
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import IconLabel from '@leaflink/stash/IconLabel.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
icon | IconName | - | Name of the icon to use. All design system icons are supported. |
color | StashCommonColor | undefined | Color to apply to the icon. Common Stash colors are supported (100, 500, & 700 shades). |
href | string | undefined | Valid hyperlink. |
stacked | boolean | false | If true, renders the label below the icon instead of to the right |
to | string | object | undefined | Valid vue-router route. |
truncate | boolean | false | If true, truncates overflowing text with an ellipsis when it's unable to wrap |
Slots
Name | Description |
---|---|
default | Label text |
Events
None