TileCard
A large-icon launcher/navigation tile (great for IRE / 10-foot menus).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A large-icon launcher/navigation tile (great for IRE / 10-foot menus).
Accessibility
When the whole card is actionable, expose a single accessible name and make it reachable with Tab + Enter. Decorative imagery uses empty alt.
Install and import
npx shadcn@latest add @prism/tile-card
import { TileCard } from '@/components/prism/TileCard';
In a no-build prototype, read it from the bundle instead: const { TileCard } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
icon | React.ReactNode | — | Large leading icon node (decorative — the title names the tile). |
title | React.ReactNode | — | |
description | React.ReactNode | — | |
onPress | (e: React.MouseEvent<HTMLButtonElement>) => void | — | Makes the title a button whose hit area covers the tile. |
href | string | — | Makes the title a link (through LinkProvider) whose hit area covers the tile. |
linkComponent | LinkComponent | — | Overrides LinkProvider's link component for this tile. |
titleAs | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | — | The title's heading element. Default "h3". |
size | "xs" | "sm" | "md" | "lg" | — | Tile scale. "md" (default) suits big launcher/TV menus; "sm" fits a 4-up dashboard grid (e.g. "Medical Centre" on one line at 1280px); "xs" is a compact row (small icon beside a body-size title) for dense settings grids; "lg" for 10-foot screens. |
hue | "rose" | "orange" | "amber" | "green" | "teal" | "blue" | "violet" | "magenta" | — | A categorical identity: the icon tile takes the hue (and the tile's focus ring). |
isDisabled | boolean | — | An unavailable tile: greyed out and not focusable. Say why in description. |
className | string | — |