Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Empty

What a list or page shows when it has nothing in it yet.

Rendered by React 19.3.1

empty.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/empty.json

It also adds utils. The app needs its setup first: Installation.

Usage

EmptyHeader holds EmptyMedia (an icon, or variant="icon" for a framed one), EmptyTitle and EmptyDescription; EmptyContent holds the actions.

import {
  Empty,
  EmptyHeader,
  EmptyTitle,
  EmptyDescription,
  EmptyContent,
  EmptyMedia,
} from '@/components/ui/empty'

Examples

Default

An empty inbox with an action.

Its preview and code are at the top of the page.

API reference

Empty wraps no headless component of its own: its parts are elements with classes, and their props are the element's.