- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
- Typography
You haven't created any projects yet. Get started by creating your first project.
import { ArrowUpRightIcon, FolderCodeIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Empty,
EmptyContent,Installation
$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.com/r/empty.json
Usage
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/empty/empty";<Empty>
<EmptyHeader>
<EmptyMedia variant="icon">
<Icon />
</EmptyMedia>
<EmptyTitle>No data</EmptyTitle>
<EmptyDescription>No data found</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button>Add data</Button>
</EmptyContent>
</Empty>Composition
Use the following composition to build an Empty state:
Empty
├── EmptyHeader
│ ├── EmptyMedia
│ ├── EmptyTitle
│ └── EmptyDescription
└── EmptyContentExamples
Outline
Use the border utility class to create an outline empty state.
Upload files to your cloud storage to access them anywhere.
import { CloudIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Empty,
EmptyContent,Background
Use the bg-* and bg-gradient-* utilities to add a background to the empty state.
You're all caught up. New notifications will appear here.
import { BellIcon, RefreshCcwIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Empty,
EmptyContent,Avatar
Use the EmptyMedia component to display an avatar in the empty state.
This user is currently offline. You can leave a message to notify them or try again later.
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";Avatar Group
Use the EmptyMedia component to display an avatar group in the empty state.
Invite your team to collaborate on this project.
import { PlusIcon } from "lucide-react";
import {
Avatar,
AvatarFallback,
AvatarGroup,InputGroup
You can add an InputGroup component to the EmptyContent component.
The page you're looking for doesn't exist. Try searching for what you need below.
Need help? Contact support
import { SearchIcon } from "lucide-react";
import {
Empty,
EmptyContent,
EmptyDescription,RTL
To enable right-to-left support, see the RTL guide.
لم تنشئ أي مشاريع بعد. ابدأ بإنشاء مشروعك الأول.
"use client";
import { FolderCodeIcon } from "lucide-react";
import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";API Reference
Empty
The main component of the empty state. Wraps the EmptyHeader and EmptyContent components.
| Prop | Type | Default |
|---|---|---|
className | string | - |
EmptyHeader
The EmptyHeader component wraps the empty media, title, and description.
| Prop | Type | Default |
|---|---|---|
className | string | - |
EmptyMedia
Use the EmptyMedia component to display the media of the empty state such as an icon or an image. You can also use it to display other components such as an avatar.
| Prop | Type | Default |
|---|---|---|
variant | "default" | "icon" | "default" |
className | string | - |
EmptyTitle
Use the EmptyTitle component to display the title of the empty state.
| Prop | Type | Default |
|---|---|---|
className | string | - |
EmptyDescription
Use the EmptyDescription component to display the description of the empty state.
| Prop | Type | Default |
|---|---|---|
className | string | - |
EmptyContent
Use the EmptyContent component to display the content of the empty state such as a button, input or a link.
| Prop | Type | Default |
|---|---|---|
className | string | - |