Example Component Library
Broken components Broken button Broken quote
Demo Components
Cards (No Flattening)
Layouts
Hero
Info card
Slotted card
Product Pricing Card Dashboard Grid Showcase
Rich button Svg icon User card
Button
Destructive Action Disabled State Dark Theme Preview Dialog Action Layout
Badge
System Status Indicator Dynamic Unread Counter
Alert
Security Outage Alert Dismissible Notification Shell
Quote oneup
Hero Editorial Callout
Promoted App Demo Demo
Demo Extra Button
Demo Nav
Cards
Info card
Elements
Quote oneup Badge
Icon
Accessibility
Generic
Divider Tooltip
Action button Design guidelines
Demo Single Chip Pill
Gallery / Demo Nav / Elements / Icon Gallery / / Icon
Demo Nav / Elements /
Documentation

Description

An SVG icon referenced by name.

Lives in elements/icon/ — the folder name matches the component name, so the gallery collapses this node (the icon folder doesn't appear as a separate folder entry).


Usage

Minimal example

{% icon "foo" %}

Bigger example

{% icon "foo" %}

Qualified tag usage

{% demo_nav__elements__icon__icon "foo" %}

Parameters

Name Type Required Default Choices Description
name str Yes — — The icon identifier (e.g. 'arrow-right', 'close').

Further documentation

Icon Component

Renders an inline SVG icon from the icon sprite.

Usage

{% icon "arrow-right" %}
{% icon "close" %}

Available icons

See the icon sprite sheet for the full list of available icon names.

Sandbox
{% icon "foo" %}
<span class='icon icon-foo ' aria-hidden='true'></span>