Font icon
The original Material Icons, bundled with your components.
favoritestarhome
Installation
Terminal
pnpm dlx shadcn@latest add https://react-toolbox.io/r/font-icon.jsonNew here? Set up your project first. Styles, fonts, and required components are included.
Usage
Mark decorative icons aria-hidden and give meaningful icons an accessible label. The Material Icons font is bundled locally.
API reference
Key props and defaults. Full types and inline documentation are included with the source in material/font-icon.
FontIcon
| Property | Type | Default |
|---|---|---|
alt | string | '' |
value | ReactNode | — |
Material guidelines
- Use the 24px system icon grid and consistent optical alignment. A glyph’s visible size is separate from its control’s 48px interaction area.
- On light surfaces, standard active icons use 54% black and inactive icons use 38%. Brand color can indicate an emphasized action or state.