Skip to main content
Version: Next

EmptyState API

import { EmptyState } from '@editora/ui-react';

Props​

PropTypeDescription
actionLabelstring
childrenReact.ReactNode
compactboolean
descriptionstring
headlessboolean
onAction() => void
titlestring
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