Empty

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

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.

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.

Avatar

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

@shadcn
CN
User Offline
This user is currently offline. You can leave a message to notify them or try again later.

Avatar Group

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

@shadcn
CN
@maxleiter
LR
@evilrabbit
ER
No Team Members
Invite your team to collaborate on this project.

Input Group

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

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::Empty::*;

#[component]
pub fn EmptyAnatomy() -> impl IntoView {
    view! {
        <Empty>
            <EmptyHeader>
                <EmptyMedia />
                <EmptyTitle />
                <EmptyDescription />
            </EmptyHeader>
            <EmptyContent />
        </Empty>
    }
}

API Reference

Empty

The main component of the empty state. Wraps the EmptyHeader and EmptyContent components.

Implements global attributes.

EmptyContent

Use the EmptyContent component to display the content of the empty state such as a button, input or a link.

Implements global attributes.

EmptyDescription

Use the EmptyDescription component to display the description of the empty state.

Implements global attributes.

EmptyHeader

The EmptyHeader component wraps the empty media, title, and description.

Implements global attributes.

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.

Custom Attributes
NameTypeDefaultDescription
variantString""

Select which variant to render. Accepted values: "icon".

Implements global attributes.

EmptyTitle

Use the EmptyTitle component to display the title of the empty state.

Implements global attributes.