Skip to content

Illustration API

API reference docs for the Stash Illustration component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Illustration from '@leaflink/stash/Illustration.vue';

Props

NameTypeDefaultDescription
nameSpotNames | VignetteNames-The filename of the icon that should be displayed
fillColorStashPrimaryColorGroupblueThe fill color for the illustration. This component will use the 400 shade of the color per design's request. Defaults to teal.
idstring 'uniqueId(ll-illustration-)'
sizenumber48The size in pixels of the illustration. This number will be used for width and height
staticPathstring '' Illustration's custom static path. It'll default to either the staticPath defined on the library installation or '/static' if none are provided.
strokeColorStashPrimaryColorpurple-500The color theme for the illustration. This component will use the standard 500 shade of the color. Defaults to purple
titlestring '' 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.
typeIllustrationTypesIllustrationType.SpotType of the illustration

Slots

None

Events

None