Empty states

Four empty states in one illustration whose shapes morph between scenes as you switch tabs.

npx shadcn@latest add @silicon-ui/empty-states
Loading…

Installation

With the shadcn CLI

npx shadcn@latest add @silicon-ui/empty-states

Manually

  1. Install the dependencies.

    npm install motion
  2. Copy these files into your project. Shared files are skipped if you already have them.

    • components/silicon-ui/blocks/empty-states/empty-states.tsx
    • components/silicon-ui/blocks/empty-states/empty-states.module.css
    • components/silicon-ui/blocks/empty-states/empty-states-art.ts
    • components/silicon-ui/button/button.tsx shared
    • components/silicon-ui/button/button.module.css shared
  3. Install the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

Source codetsx
import { EmptyStates } from "@/components/silicon-ui/blocks/empty-states/empty-states";

Dependencies

npm
motion
Registry
silicon-motion-tokensbutton