Skip to content
Hazine

Empty State

Base empty state with an icon in a muted tile, a heading, a short description and a slot for one action. The heading level is a prop so it fits the surrounding outline.

How it differs. The neutral baseline with slots only (icon, title, description, actions) inside a dashed frame, and no structure tied to a cause.

Install

pnpm dlx shadcn@latest add @hazine/empty-state

Adds 1 file and 1 Hazine item (@hazine/heading).

First time? Add the registry to components.json
{
  "registries": {
    "@hazine": "https://api.hazine.dev/r/{name}.json"
  }
}

Needed once per project. Items resolve each other through the @hazine namespace.

Props5

icon
React.ReactNode
Decorative icon shown in a muted tile above the title.
titlerequired
string
Says what will appear here.
description
string
actions
React.ReactNode
One action that fills the empty space.
headingLevel
HeadingLevel = 3

Also accepts every prop of React.ComponentProps<"div">.

Accessibility

Pattern
Landmarks and headings
Keyboard
Nothing to operate. The item has no focusable parts.
Screen reader

A heading at the level given by headingLevel followed by a paragraph. The icon is decorative and hidden from assistive technology.

Reduced motion
No motion.
Checked
Not checked yet. Automated results appear here once CI has run.

Dependencies1

  • @hazine/heading

Filled chips are registry items the CLI adds for you. Outlined chips are npm packages.

Tokens shipped0

None. The item is styled by the tokens your theme already has.

More in Feedback and Status