Empty state
A useful next step when there is nothing to show yet.
npx shadcn@latest add @silicon-ui/empty-stateInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/empty-stateManually
Install the dependencies
npm install lucide-react motionCopy these files into your project
- components/silicon-ui/empty-state/empty-state.tsx
- components/silicon-ui/empty-state/empty-state.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| Prop | Type | Default |
|---|---|---|
title* | string | — |
description* | string | — |
action | ReactNode | — |
icon | ReactNode | — |
className | string | — |
labelOptional accessible label for the state region. | string | — |
Dependencies
- npm
- lucide-reactmotion
- Registry
- silicon-motion-tokens