shadcn

Empty

Buttons 10

About

Here is Empty components

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Empty to your project and fits it to your theme.

Code

How Empty is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { IconBell } from "@tabler/icons-react"
import { RefreshCcwIcon } from "lucide-react"

import { Button } from "@/components/ui/button"
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/components/ui/empty"

export default function EmptyMuted() {
  return (
    <Empty className="from-muted/50 to-background h-full bg-gradient-to-b from-30%">
      <EmptyHeader>
        <EmptyMedia variant="icon">
          <IconBell />
        </EmptyMedia>
        <EmptyTitle>No Notifications</EmptyTitle>
        <EmptyDescription>
          You&apos;re all caught up. New notifications will appear here.
        </EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button variant="outline" size="sm">
          <RefreshCcwIcon />
          Refresh
        </Button>
      </EmptyContent>
    </Empty>
  )
}

Dependencies

More by shadcn

View all
  • Navigation menu

    Navigation menu

    806
  • Calendar with time pressets

    Calendar with time pressets

    528
  • Sidebar

    Sidebar

    360
  • Sonner

    Sonner

    252
  • Chart

    Chart

    230
  • Icons

    Icons

    209
  • Dropdown Menu

    Dropdown Menu

    160
  • Calendar with event slots

    Calendar with event slots

    126

More in Buttons

View all
  • Button

    Button

    16
  • Texture Button

    Texture Button

    110
  • Astryx Button Group

    Astryx Button Group

    27
  • Button

    Button

    135
  • Button

    Button

    36
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    9
  • HeroUI Toggle Button

    HeroUI Toggle Button

    2