Skip to content
GitHub11 stars

Use the Empty component to display an empty state.

No Projects Yet
You haven't created any projects yet. Get started by creating your first project.
Learn More
<Empty>
    <EmptyHeader>
        <EmptyMedia Variant="EmptyMediaVariant.Icon"><Icon Data="LucideIcons.FolderCode" /></EmptyMedia>

Installation

dnx Blazix.Cli add empty

Usage

<Empty>
    <EmptyHeader>
        <EmptyMedia Variant="EmptyMediaVariant.Icon">
            <Icon Data="LucideIcons.Folder" />
        </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
└── EmptyContent

Outline

Use the border utility class to create an outline empty state.

Cloud Storage Empty
Upload files to your cloud storage to access them anywhere.
<Empty Class="border border-dashed">
    <EmptyHeader>
        <EmptyMedia Variant="EmptyMediaVariant.Icon"><Icon Data="LucideIcons.Cloud" /></EmptyMedia>
        <EmptyTitle>Cloud Storage Empty</EmptyTitle>
        <EmptyDescription>Upload files to your cloud storage to access them anywhere.</EmptyDescription>
    </EmptyHeader>
    <EmptyContent><Button Variant="ButtonVariant.Outline" Size="ButtonSize.Sm">Upload Files</Button></EmptyContent>
</Empty>

Background

Use the bg-* and bg-gradient-* utilities to add a background to the empty state.

No Notifications
You're all caught up. New notifications will appear here.
<Empty Class="h-full bg-muted/30">
    <EmptyHeader>
        <EmptyMedia Variant="EmptyMediaVariant.Icon"><Icon Data="LucideIcons.Bell" /></EmptyMedia>

Avatar

Use the EmptyMedia component to display an avatar in the empty state.

LR
User Offline
This user is currently offline. You can leave a message to notify them or try again later.
<Empty>
    <EmptyHeader>
        <EmptyMedia Variant="EmptyMediaVariant.Default">

Avatar Group

Use the EmptyMedia component to display an avatar group in the empty state.

BX LR ER
No Team Members
Invite your team to collaborate on this project.
<Empty>
    <EmptyHeader>
        <EmptyMedia>

InputGroup

You can add an InputGroup component to the EmptyContent component.

404 - Not Found
The page you're looking for doesn't exist. Try searching for what you need below.
/
Need help? Contact support
<Empty>
    <EmptyHeader>
        <EmptyTitle>404 - Not Found</EmptyTitle>

RTL

To enable RTL support in Blazix, see the RTL configuration guide.

Translated with AI for the demo, so it may have mistakes.

لا توجد مشاريع بعد
لم تقم بإنشاء أي مشاريع بعد. ابدأ بإنشاء مشروعك الأول.
تعرف على المزيد
<Empty>
    <EmptyHeader>
        <EmptyMedia Variant="EmptyMediaVariant.Icon"><Icon Data="LucideIcons.FolderCode" /></EmptyMedia>

API Reference

Empty

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

EmptyContent

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

EmptyDescription

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

EmptyHeader

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

EmptyMedia

ParameterTypeDefault
Variant EmptyMediaVariant EmptyMediaVariant.Default
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.

EmptyTitle

ParameterTypeDefault
Class string? -
ChildContent RenderFragment? -

Other attributes are passed to the element it renders.