UIComponentsReact
What a list or page shows when it has nothing in it yet.
Rendered by React 19.3.1
Installation
npx shadcn@4.23.0 add https://hamur.dev/r/react/empty.jsonIt 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
API reference
Empty wraps no headless component of its own: its parts are elements with classes, and their props are the element's.