On this page

Empty

Install, props and the parts Empty is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/empty.json

Use

<script setup lang="ts">
import { Plug } from '@lucide/vue'
import { Button } from '@/components/ui/button'
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from '@/components/ui/empty'
</script>

<template>
  <Empty>
    <EmptyHeader>
      <EmptyMedia><Plug aria-hidden="true" /></EmptyMedia>
      <EmptyTitle>No connections yet</EmptyTitle>
      <EmptyDescription>Connect an online store or an ERP to start syncing orders.</EmptyDescription>
    </EmptyHeader>
    <EmptyContent>
      <Button>Add connection</Button>
    </EmptyContent>
  </Empty>
</template>

Props

Part Prop Values Notes
EmptyMedia variant default, icon default: the icon on its own at 32 px. icon: a 16 px icon on a 32 px tile
every part class string Merged with the Beehexa classes

emptyMediaVariants gives the media classes for another element.

Built on

Plain elements with data-slot attributes, as the shadcn-vue Empty. Beehexa adds the styles; the default media draws the icon at size.icon.empty.