Empty state

A useful next step when there is nothing to show yet.

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

Installation

With the shadcn CLI

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

Manually

  1. Install the dependencies.

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

    • components/silicon-ui/empty-state/empty-state.tsx
    • components/silicon-ui/empty-state/empty-state.module.css
  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 { EmptyState } from "@/components/silicon-ui/empty-state/empty-state";

API reference

PropTypeDefault
title*string—
description*string—
actionReactNode—
iconReactNode—
classNamestring—
label

Optional accessible label for the state region.

string—

Dependencies

npm
lucide-reactmotion
Registry
silicon-motion-tokens