Skip to content
Eskais UI

Feedback

Empty

Presentational empty-state parts in three sizes (inline, panel, page): media, title, description and actions.

Example

No tasks yet

Installation

npx shadcn@latest add @eskais/empty
npm packagesclass-variance-authority@0.7.1

Usage

Import
import {  Empty,  EmptyContent,  EmptyDescription,  EmptyHeader,  EmptyMedia,  emptyMediaVariants,  EmptyTitle,  emptyVariants,} from "@/components/ui/empty"

API reference

Empty

PropTypeDefault
size"inline" | "panel" | "page""panel"

Also takes <div> attributes and render.

EmptyMedia

PropTypeDefault
variant"default" | "icon""default"

Also takes <div> attributes and render.

Other exports

EmptyContentEmptyDescriptionEmptyHeaderemptyMediaVariantsEmptyTitleemptyVariantstype EmptySize

Accessibility

  • Pick the title's element with render so it fits the heading outline.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.