Card
A contained group of related content and actions.
A useful next step when there is nothing to show yet.
npx shadcn@latest add @silicon-ui/empty-statenpx shadcn@latest add @silicon-ui/empty-stateInstall the dependencies.
npm install lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/empty-state/empty-state.tsxcomponents/silicon-ui/empty-state/empty-state.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
title* | string | — |
description* | string | — |
action | ReactNode | — |
icon | ReactNode | — |
className | string | — |
labelOptional accessible label for the state region. | string | — |