Pick a color mode
Renders an icon using an SVG sprite.
Maturity: Refining
Render an icon with a visually hidden label:
<.icon_sprite name="arrow-left" label="Go back" />
To display the label visibly:
<.icon_sprite name="arrow-left" label="Go back" label_position="after" />
Any additional classes to be added.
Variations of the component should be expressed via modifier attributes, and it is preferable to use styles on the parent container to arrange components on the page, but if you have to, you can use this attribute to pass additional utility classes to the component.
The value can be a string or a list of strings.
Text that describes the icon.
Position of the label relative to the icon. If set to "hidden", the
"hidden"
label is visually hidden, but still accessible to screen readers.
label
This requires a CSS rule for the data-visually-hidden attribute. See Visually hidden text.
data-visually-hidden
Icon name as used in the sprite.
Any additional HTML attributes.