Behive Tech Registry

Empty State

v0.3.0

A generic centered placeholder for empty lists, grids, or search results: an optional icon, a description, and an optional action. Modeled on AntD's `Empty` — reusable anywhere something has nothing to show yet.

pnpm add @behivetech/molecules.empty-state

A generic centered placeholder for empty lists, grids, or search results: an optional icon, a description, and an optional action. Modeled on AntD's Empty — reusable anywhere something has nothing to show yet.

Usage

Props

PropTypeDefaultDescription
iconReactNode—Icon or illustration shown above the description
descriptionReactNode—Message explaining the empty state (required)
childrenReactNode—Action content rendered below the description
classNamestring—Additional class names

Compositions

Open all 3 →

Properties

EmptyState props

PropTypeDefaultDescription
description*ReactNode—Message explaining the empty state
childrenReactNode—Action content rendered below the description (typically a Button)
classNamestring—Additional class names to merge with the component root element
iconReactNode—Icon or illustration shown above the description

Also accepts the native attributes of its root element (className, aria-*, event handlers, …).