Loading dashboard...
Loading dashboard...
import {
Empty,
EmptyContent,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from "@/components/ui/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>Use the border utility class to create an outline empty state.
Use the bg-* and bg-gradient-* utilities to add a background to the empty state.
Use the EmptyMedia component to display an avatar in the empty state.
Use the EmptyMedia component to display an avatar group in the empty state.
You can add an InputGroup component to the EmptyContent component.
The main component of the empty state. Wraps the EmptyHeader and EmptyContent components.
<Empty>
<EmptyHeader />
<EmptyContent />
</Empty>The EmptyHeader component wraps the empty media, title, and description.
<EmptyHeader>
<EmptyMedia />
<EmptyTitle />
<EmptyDescription />
</EmptyHeader>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.
<EmptyMedia variant="icon">
<Icon />
</EmptyMedia><EmptyMedia>
<Avatar>
<AvatarImage src="..." />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
</EmptyMedia>Use the EmptyTitle component to display the title of the empty state.
<EmptyTitle>No data</EmptyTitle>Use the EmptyDescription component to display the description of the empty state.
<EmptyDescription>You do not have any notifications.</EmptyDescription>Use the EmptyContent component to display the content of the empty state such as a button, input or a link.
<EmptyContent>
<Button>Add Project</Button>
</EmptyContent>import { Button } from "@/components/ui/button"
import {
Empty,import { Button } from "@/components/ui/button"
import {
Empty,import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import {import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import {import {
Empty,
EmptyContent,import { Button } from "@/components/ui/button"
import {
Empty,