Skip to content

Icon ​

An icon component with a resolver pattern for swappable icon sets.

  • Tag: <flint-icon>
  • Class: FlintIcon

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintIcon } from '@getufy/flint-ui';

Usage ​

html
<flint-icon></flint-icon>

Properties ​

PropertyAttributeTypeDefaultDescription
namenamestring''Icon name resolved through the registered icon resolver.
srcsrcstring''Direct URL to an SVG file. Overrides the resolver.
sizesizeIconSize'md'Size variant.
labellabelstring''Accessible label. When set, applies role="img"; otherwise aria-hidden="true".

Events ​

EventDetailDescription
flint-load—Emitted when the SVG has been successfully loaded and rendered.
flint-error—Emitted when the SVG fails to load.

CSS Parts ​

NameDescription
baseThe outer container element.
svgThe inner container wrapping the inline SVG or &lt;use&gt; element.

CSS Custom Properties ​

PropertyDefault
--flint-icon-size—
--flint-icon-color—