Empty state
Empty state component with an icon, title, description and action for lists and screens without content.
How to use it
Run npx @blossomui/react add empty-state, or copy src/components/UI/EmptyState/EmptyState.tsx into your React project and import it.
import { EmptyState } from './components/ui/EmptyState'Props
EmptyStateProps
| Prop | Type | Description |
|---|---|---|
| color | string | Accent color of this component: any CSS color. Without it the component uses `--blossom-accent`, which is pink by default. |
| title (required) | string | |
| description | ReactNode | |
| icon | ReactNode | Illustration or icon shown above the title. |
| action | ReactNode | Button or link that suggests what to do next. |
| bordered | boolean | Draw a dashed border around the state. |