@latimer-woods-tech/icons
v0.1.0
Published
Tree-shakeable SVG React icons sized via design tokens, with correct decorative/labeled a11y.
Readme
@latimer-woods-tech/icons
Tree-shakeable SVG React icons sized via design tokens, with correct decorative/labeled a11y.
Usage
import { Check, ChevronDown, Icon } from '@latimer-woods-tech/icons';
// Decorative (default): rendered aria-hidden, no accessible name.
<Check />
// Labeled: pass a title for an accessible name.
<Check title="Saved" />
// Sizes come from the design-token spacing scale ('sm' | 'md' | 'lg'), or pass a number.
<ChevronDown size="lg" />
<Icon size={40}><path d="M12 5v14" /></Icon>Icon dimensions are derived from @latimer-woods-tech/design-tokens spacing values, never hard-coded.
