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.

States: Default

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

PartRecipe
Emptyempty
EmptyContentempty-content
EmptyDescriptionempty-description
EmptyHeaderempty-header
EmptyMediaempty-media
EmptyTitleempty-title

Install

Writes 7 files into components/ui/empty/. For agents, npx @frontic/ui docs empty prints this reference as markdown; the MCP server serves the same.

npm packages
class-variance-authority
reka-ui

API reference

Empty Empty.vue

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

PropTypeDefault
asChildbooleanfalse
asAsTag | Component'div'
classClassValue—
Recipe emptySets
base: empty 12 properties

EmptyContent EmptyContent.vue

EmptyDescription EmptyDescription.vue

EmptyHeader EmptyHeader.vue

EmptyMedia EmptyMedia.vue

EmptyTitle EmptyTitle.vue

Example