Skip to content

Empty State Component

An empty state component with icon and actions slots.

Properties

NameTypeDefaultDescription
titlestring''The title of the empty state.
descriptionstring''The description for the empty state.

Slots

NameDescription
iconthe icon slot of the empty state.
actionsthe actions slot of the empty state.

CSS Parts

NameDescription
containerThe root container of the empty state component a div.
iconThe container of the icon slot, a span.
contentThe wrapper around heading and description, a div.
headingThe heading element, a span.
descriptionThe description element, a p.
actionsThe container of the actions slot, a div.

Check this link to learn how to use CSS parts for Empty State Component.

CSS Properties

TokenDefaultDescription
--tap-font-family--tap-sys-font-familyThe font family used in the empty state.
--tap-empty-state-icon-horizontal-margin-The horizontal margin for the icon slot.
--tap-empty-state-icon-vertical-margin--tap-sys-spacing-6The vertical margin for the icon slot.
--tap-empty-state-actions-horizontal-margin-The horizontal margin for the actions slot.
--tap-empty-state-actions-vertical-margin--tap-sys-spacing-6The vertical margin for the actions slot.
--tap-empty-state-content-horizontal-padding--tap-sys-spacing-6The horizontal padding for the content slot.
--tap-empty-state-content-vertical-padding--tap-sys-spacing-4The vertical padding for the content slot.
--tap-empty-state-title-font-size--tap-sys-typography-headline-sm-sizeThe font size used for the title in the empty state.
--tap-empty-state-title-font-weight--tap-sys-typography-headline-sm-weightThe font weight used for the title in the empty state.
--tap-empty-state-title-line-height--tap-sys-typography-headline-sm-heightThe line height used for the title in the empty state.
--tap-empty-state-description-font-size--tap-sys-typography-headline-sm-sizeThe font size used for the description in the empty state.
--tap-empty-state-description-font-weight--tap-sys-typography-headline-sm-sizeThe font weight used for the description in the empty state.
--tap-empty-state-description-line-height--tap-sys-typography-headline-sm-sizeThe line height used for the description in the empty state.
--tap-empty-state-description-color--tap-sys-typography-headline-sm-sizeThe color used for the description in the empty state.
--tap-empty-state-description-top-margin--tap-sys-spacing-4The top margin used for the description in the empty state.