Vivid API

Empty State

The Empty State component is used to display a message when there is no data to show.

Usage

import { registerEmptyState } from '@vonage/vivid-api';
registerEmptyState('your-prefix');

Slots

Default Slot

Use the default slot to set the content of the Empty State.

Icon

Use the icon slot to provide a custom icon for the Empty State.

Graphic Slot

Use the graphic slot to set a graphic element to the Empty State.
The graphic slot overrides the icon of the Empty State.

Action Items Slot

Use the action-items slot to add action items to the Empty State.

API Reference

Properties

PropertyTypeDefaultDescription
connotation'alert' | 'accent' | 'cta' | 'success' | 'warning' | 'information'The connotation the button should have.
headlinestringAn optional headline for the empty state.
iconDecoration'filled' | 'outlined'Has no effect on the component
PropertyTypeDefaultDescription
connotation'alert' | 'accent' | 'cta' | 'success' | 'warning' | 'information'The connotation the button should have.
headlinestringAn optional headline for the empty state.
icon-decoration'filled' | 'outlined'Has no effect on the component

Slots

NameDescription
action-itemsSlot to add action items to the empty state
defaultThe default slot controls the body text of the empty state
graphicThe graphic slot allows overriding the icon with a custom illustration
iconThe preferred way to add an icon to the component.
NameDescription
action-itemsSlot to add action items to the empty state
defaultThe default slot controls the body text of the empty state
graphicThe graphic slot allows overriding the icon with a custom illustration
iconThe preferred way to add an icon to the component.