Empty
Empty-state container with optional icon, title, description, and action.
2.1 kBgzipped
At a glance
- Use for zero-results views, onboarding prompts, and placeholder states.
- Renders a centered column: icon → title → description → action.
- All slots except
titleare optional.
Preview
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title* | string | — | Required heading text. |
action | ReactNode | — | Optional action slot — typically a `<Button>`. |
className | string | — | — |
description | string | — | Optional secondary description below the title. |
icon | ReactNode | — | Optional icon or illustration rendered above the title. |
testID | string | — | — |