Icon Tile

The colored rounded-square icons used in System Settings and other lists.

@cupertinoui/icon-tileRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/icon-tile

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

import { IconTile } from "@/components/ui/icon-tile"

<IconTile color="blue">
  <WifiIcon />
</IconTile>

Examples

Sizes

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

IconTile

PropTypeDescription
color"blue" | "gray" | "graphite" | "green" | "indigo" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "black" | "white"
Default: "blue"
The tile color.
size"sm" | "default" | "lg"
Default: "default"
16, 20 or 32pt.
classNamestringExtra classes, merged with the component's own.