feedback/@mihcm/ui·v0.21.0·stable
EmptyState
Centered placeholder for empty sections — optional icon, title, description, and action button.
Props
The full prop API for EmptyState. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
title | string | — | Primary heading text. Required. | 0.5.0 |
description | string | — | Optional muted description below the title. | 0.5.0 |
icon | ReactNode | — | Optional icon or illustration rendered above the title. | 0.5.0 |
action | ReactNode | — | Optional action slot (typically a Button). | 0.5.0 |
className | string | — | Additional Tailwind classes. | 0.5.0 |
Import
import { EmptyState } from '@mihcm/ui/EmptyState';