Function: Icon()
Icon(
__namedParameters):Element
Defined in: components/Icon/Icon.tsx:80
Renders a semantic glyph via the Iconify provider (ADR-005).
Icon is named by intent and inherits its color from context
(currentColor); only its size is a token. Glyphs are registered offline
on first render (ensureIconGlyphs), so no network request is made.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | IconProps |
Returns
Element
Example
<Icon intent="disclosure.expand" />
<Icon intent="action.close" size="sm" label={closeLabel} />