This page as markdown: /icon-tile.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

IconTile

Status: stable

One icon on a small square tile: the mark beside a feature's title, a file type in a result row, a category in a list. Sizes and corners follow the square Avatar; the fill is the surface's well, the muted surface, or a palette family.

Keywords: icon tile, icon box, icon square, feature icon, file icon, leading icon, glyph tile, icon badge

Usage

Use IconTile wherever an icon needs a shape of its own: a feature card's mark, the leading slot of a row whose item is a thing rather than a person (a document, a file, an integration), a category in a settings list. It is decorative by default, because a title beside it says what it is.

Best practices

Anatomy

Part Required Description
Tile yes The square, sized from the Avatar ladder, filled by appearance or tone.
Icon yes One semantic icon, scaled to about half the tile.

Props

Name Type Default Description
icon string — The semantic icon name, as <Icon name> takes it.
size "sm" | "md" | "lg" "md" 32 / 40 / 48px, with the square Avatar's corner at each size. The icon scales with it.
appearance "well" | "muted" "well" well: the relative recess of the surface it sits on (sable-well), so it reads on a card, a section or a popover. muted: the flat muted surface with muted ink, quieter, for a row.
tone "neutral" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink" "neutral" A palette family's wash and deep ink in place of the appearance's fill — for a category colour, never a status.
label string — The accessible name, when nothing beside the tile says what it is. Omitted, the tile is aria-hidden.

Variants

Tokens used

muted, muted-foreground, foreground, palette-wash, palette-text

Accessibility

Related

Examples

Feature card

import { Card, CardContent, IconTile } from "@sableui/react"

<Card className="max-w-xs"><CardContent className="flex flex-col gap-3"><IconTile icon="layout" /><h3 className="pt-2 text-title-lg">Pages, not just parts</h3><p className="text-body-sm text-muted-foreground">Shells to copy and adapt.</p></CardContent></Card>

Row lead

import { Entity, IconTile } from "@sableui/react"

<Entity leading={<IconTile icon="file" size="sm" appearance="muted" />} title="Q4 roadmap" subtitle="Edited 2 hours ago" />

Sizes and tones

import { IconTile, Row } from "@sableui/react"

<Row gap={3}><IconTile icon="star" size="sm" /><IconTile icon="star" /><IconTile icon="star" size="lg" /><IconTile icon="tag" tone="teal" /><IconTile icon="music" tone="purple" /></Row>