Every example is a complete Vue file. Copy it into an app that has the registry installed, or open it in StackBlitz.
First use
Nothing has been added yet. Say what goes here and give the one action that starts it. The dashed edge is on because a border width is set.
No connections yet
Connect an online store or an ERP to start syncing orders.
EmptyFirstUse.vue
<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 class="border-(length:--bh-border-width-default)">
<EmptyHeader>
<EmptyMedia><Plug aria-hidden="true" /></EmptyMedia>
<EmptyTitle><h3 class="m-0 [font:inherit]">No connections yet</h3></EmptyTitle>
<EmptyDescription>Connect an online store or an ERP to start syncing orders.</EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button>Add connection</Button>
</EmptyContent>
</Empty>
</template>No results
A search or filter found nothing. Say what was searched and how to widen it.
No customers match "Lotus"
Check the spelling, or search by phone number or email instead. How search works
EmptySearch.vue
<script setup lang="ts">
import { SearchX } 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 variant="icon"><SearchX aria-hidden="true" /></EmptyMedia>
<EmptyTitle>No customers match "Lotus"</EmptyTitle>
<EmptyDescription>Check the spelling, or search by phone number or email instead. <a href="#search-help">How search works</a></EmptyDescription>
</EmptyHeader>
<EmptyContent>
<Button variant="outline">Clear search</Button>
</EmptyContent>
</Empty>
</template>