OYNA

Empty ​

Nothing here yet. Say what is missing, why, and give the way out.

No deploys yet

Ship the first version and it will show up here.

vue
<script setup lang="ts">
import { Inbox, Plus } from '@lucide/vue'
</script>

<template>
  <OEmpty title="No deploys yet">
    <template #icon><Inbox /></template>
    Ship the first version and it will show up here.
    <template #actions>
      <OButton variant="primary"><Plus /> New deploy</OButton>
      <OButton variant="ghost">Read the guide</OButton>
    </template>
  </OEmpty>
</template>

Only the title is required. A search with no results needs no button:

Nothing found

Try a shorter word.

vue
<OEmpty title="Nothing found">Try a shorter word.</OEmpty>

It has no fill of its own: put it in a card, or straight on the page.

Props and slots ​

PropTypeDefaultDescription
titlestringrequiredWhat is missing, in a few words
SlotDescription
defaultWhy it is empty, or what to do about it
iconAn icon above the title
actionsOne or two buttons: the way out