IconTile
Frondsm beside a table cell, lg beside a page title.Usage
The import, then a use to start from. Both copy as they are.
Import
import { ICON_TILE_MARK_SIZE, IconTile } from "@/components/ui/IconTile";Example
<IconTile size="sm"> <Code2Icon size={ICON_TILE_MARK_SIZE.sm} /></IconTile>When to use
Use it for
- A logo or icon that names a row or a page: an SDK's language, a package registry.
- Size the mark with
ICON_TILE_MARK_SIZEso logos of different shapes read at the same weight.
Avoid
- A bordered
divdrawn for one screen around an icon.
Accessibility
Checks
- The tile is decorative; the name beside it carries the meaning.
API
Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.
IconTile
Its stories don't declare
argTypes, so no props are listed. The variants show its states.Also exportsICON_TILE_MARK_SIZE
VariantsDefaultLargeInATableRow