App tile
The square mark of an app: its icon on a flat tile.
import { AppTile } from "@forgeron/ui";import { DashboardSquare01Icon, Folder01Icon, Mail01Icon, Task01Icon } from "@forgeron/icons";
import { AppTile } from "@forgeron/ui";
export default function Tones() {
return (
<>
<AppTile icon={Task01Icon} size={20} label="Tasks" />
<AppTile icon={Mail01Icon} label="Mail" />
<AppTile icon={DashboardSquare01Icon} size={48} tone="ink" label="Workspace" />
<AppTile icon={Folder01Icon} tone="neutral" label="Drive, not installed" />
</>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
icon | IconDefinition | — | The app's icon. |
size | 20 | 32 | 48 | 32 | In px. |
tone | "accent" | "ink" | "neutral" | "accent" | An app, the workspace, not installed. |
label | string | — | Names a tile without its app's name. |
className | string | — | Extra classes. |