@xngui/icons
v0.0.5
Published
Icon component and optional icon-font styles for @xngui
Readme
@xngui/icons
XIcon plus optional icon-font styles. Font sets live under fonts/<set>/ — add another folder when you introduce a new set.
Setup
@import '@xngui/icons/fontawesome'; /* once, at the app root */import { XIcon } from '@xngui/icons';<x-icon name="star" />
<x-icon name="gear" style="regular" ariaLabel="Settings" />
<x-icon name="eye" size="sm" />
<x-icon name="spinner" [spin]="true" />Sizes map to --x-icon-size-* tokens (xs 0.75rem → xl 2rem). Omit size to inherit font-size from the parent. Font Awesome glyphs render at 1.25em × 1em by default (--fa-width).
| Import | Path |
| -------------------------- | ----------------------------- |
| @xngui/icons | XIcon component |
| @xngui/icons/fontawesome | fonts/fontawesome/index.css |
Font Awesome
@xngui/icons/fontawesome bundles Font Awesome Free (icons: CC BY 4.0; fonts: SIL OFL 1.1). See the repo NOTICE for attribution when shipping icons in a product.
