empty

Empty

Fills the space when there is nothing to show, such as an empty cart or a search without results, with an icon, a title, a hint and actions.

Parts

PartFileDoes
EmptyEmpty.vueGroups all parts of the empty state.
EmptyContentEmptyContent.vueHolds the actions offered to the user when there is nothing to show.
EmptyDescriptionEmptyDescription.vueExplains why there is nothing to show and what to do next.
EmptyHeaderEmptyHeader.vueGroups the media, title and description of the empty state.
EmptyMediaEmptyMedia.vueShows an icon or image above the title of the empty state.
EmptyTitleEmptyTitle.vueStates that there is nothing to show.

Anatomy

<Empty>
  <EmptyHeader>
    <EmptyMedia />
    <EmptyTitle />
    <EmptyDescription />
  </EmptyHeader>
  <EmptyContent />
</Empty>

Styling

All of Empty’s styles live in empty.json. New to styling in Frontic UI? How styling works →

Install

npm packages
class-variance-authority
reka-ui

API reference

Empty.vue

Groups all parts of the empty state. Renders a <div>.

Props 3

PropTypeDefault
asChildbooleanfalse
asAsTag | Component'div'
classClassValue—

Recipe empty 1 group

EmptyContent.vue

EmptyDescription.vue

EmptyHeader.vue

EmptyMedia.vue

EmptyTitle.vue
Empty