Empty
Empty state placeholder component.
Preview
A preview of the Empty component with interactive controls.
Interactive
Installation
Add the Empty component to your project.
ng g @ng-cn/core:c emptyUsage
Import and use the Empty component in your Angular application.
<Empty class="py-12">
<EmptyIcon>
<lucide-icon name="inbox" class="h-12 w-12 text-muted-foreground" />
</EmptyIcon>
<EmptyTitle>No items found</EmptyTitle>
<EmptyDescription>
You haven't added any items yet. Start by creating a new item.
</EmptyDescription>
</Empty>Examples
Explore different variations and use cases for the Empty component.
Basic
Interactive
API Reference
Props | Prop | Type | Default | Description |
|---|---|---|---|
class | string | — | Additional CSS classes. |