Skip to content

Empty state

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

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

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

    • components/silicon-ui/empty-state/empty-state.tsx
    • components/silicon-ui/empty-state/empty-state.module.css
  3. Add the foundation, once per app, for the design and motion tokens

    npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

usage.tsx
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