EmptyState API
import { EmptyState } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
actionLabel | string | |
children | React.ReactNode | |
compact | boolean | |
description | string | |
headless | boolean | |
onAction | () => void | |
title | string | |
tone | 'neutral' | 'success' | 'warning' | 'danger' | |
variant | 'default' | 'plain' | plain: no box of its own (inside a Card, table or panel that already draws one). |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-empty-state>
EmptyState renders the ui-empty-state custom element from @editora/ui-core, which can also be used without React.
Attributes: action-label, compact, description, headless, title, tone, variant
Events: action