Deliver [Spectrum Workflow Icons](https://spectrum.adobe.com/page/icons/) as either:
npm install @spectrum-web-components/icons-workflowDeliver Spectrum Workflow Icons as either:
- Registered custom elements ()
- Unregistered class definitions (IconAbc)
- Functions with customizable template tags to be used across various frameworks (AbcIcon())
Search a full list of icons to find an icon for your project or find technical information about extended use cases, like consuming this package in various UI frameworks below.
When planning how to leverage these icons in the visual delivery of your application, remember to consult Spectrum's Iconography Guidelines.


```
yarn add @spectrum-web-components/icons-workflow
Import the side effectful registration of a single element (e.g. ) via:
``
import '@spectrum-web-components/icons-workflow/icons/sp-icon-abc.js';
Leverage a single icon base class (e.g. IconAbc) as a type, or for extension purposes, do so, via:
``
import { IconAbc } from '@spectrum-web-components/icons-workflow/src/elements/IconAbc.js';
Search the available Spectrum Workflow icons below.
Complete search experience available at: https://opensource.adobe.com/spectrum-web-components/components/icons-workflow/.
You can import raw icons (e.g. AbcIcon()) via:
`js`
import { AbcIcon } from '@spectrum-web-components/icons-workflow/src/icons/ABC.js';
@spectrum-web-components/icons-workflow exports _all_ icons. If your build process tree-shakes dependencies, you can import from it directly:
`js`
import { AbcIcon } from '@spectrum-web-components/icons-workflow';
These icon literals are prepared with the html template tag from lit-html, the default value of an icon export will be as follows:
`js
import { LitElement, html } from 'lit-element';
import '@spectrum-web-components/icon';
import { AbcIcon } from '@spectrum-web-components/icons-workflow';
class ElementWithIcon extends LitElement {
protected override render(): TemplateResult {
return html
${AbcIcon()}
}
}
customElements.define('element-with-icon', ElementWithIcon);
`
Every icons can be customized via the following options:
`jsaria-hidden
{
width: 24, // number outlining the width to deliver the SVG element with
height: 24, // number outlining the height to delivery the SVG element with
hidden: false, // boolean representing whether to apply the attribute`
title: 'Icon title', // string of the title to deliver the icon with
}
The default exports of this package are pre-wrapped via setCustomTemplateLiteralTag in the html template tag from lit-html, and work like the following::
`js
import { AbcIcon } from '@spectrum-web-components/icons-workflow';
console.log(AbcIcon());
/*
TemplateResult {strings: Array[1], values: Array[0], type: "html", processor: DefaultTemplateProcessor, constructor: Object}
*/
`
When working in the context of other frameworks, it is possible to import the icons with a generic template tag as follows:
`js
import { AbcIcon } from '@spectrum-web-components/icons-workflow/src/icons.js';
console.log(AbcIcon());
/*
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 36 36"
role="img"
fill="currentColor"
height="24"
width="24"
aria-hidden="false"
aria-label="Circle"
>
/>
/>
*/
`
What's more, if you're already working with a specific parser in your project, you can assign it as the one to use when delivering the icons in order to be sure that the SVG content is delivered as parsed content to your final template. The means if you were working with Preact via the htm tag as bound to the provided hyperscript function:
`js
import {
AbcIcon,
setCustomTemplateLiteralTag,
} from '@spectrum-web-components/icons-workflow/src/icons.js';
import htm from 'htm';
import { h } from 'preact';
const hPreact = htm.bind(h);
setCustomTemplateLiteralTag(hPreact);
console.log(AbcIcon());
/*
VNode {nodeName: "svg", children: Array[1], attributes: Object, key: undefined, constructor: Object}
*/
`
In this way the icons exported by @spectrum-web-components/icons-workflow` can be leveraged in projects powered by the the likes of hyperHTML, lighterhtml, lit-html, Preact, React, Vanilla JS, Vue.js, and more!
Review the accessibility guidelines for the icon.