Icon Tile
A square surface that gives icons a consistent footprint.
Overview
- `variant`:
outline(bordered),elevated(raised chip),soft(tinted double container),solid(filled) orframe(double container matchingCard).softandsolidfollowcurrentColor, so a text color class retints them. - `size`: from
xstoxl. - `radius`:
default(clamped to the tile) orfull(circular).
Renders a <span>; wrap it in a Button or Link to make it interactive.
Installation
CLI
Manual
- 1
Register the @fma-ds namespace in components.json (once)
- 2
Add the item
Files land in
components/fma-ds/icon-tile.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- class-variance-authority@^0.7.1cn@^0.5.0
- Registry
- None