Empty states are used when a list, table, or chart has no items or data to show. This is an opportunity to provide explanation or guidance to help users progress. The empty state component is intended for use when a full page is empty, and not for individual elements or areas in the interface.
Track and receive your incoming inventory from suppliers.
<script lang="ts" setup>
import {
Button,
EmptyState,
EmptyStateActions,
EmptyStateContent,
EmptyStateDescription,
EmptyStateTitle,
} from '@returnless/focus-ui';
</script>
<template>
<EmptyState>
<EmptyStateContent>
<EmptyStateTitle>Manage your inventory transfers</EmptyStateTitle>
<EmptyStateDescription>Track and receive your incoming inventory from suppliers.</EmptyStateDescription>
</EmptyStateContent>
<EmptyStateActions>
<Button variant="secondary">Learn more</Button>
<Button>Add transfer</Button>
</EmptyStateActions>
</EmptyState>
</template>Empty states should:
Empty state titles should:
Empty state subtitles act like body content. They should:
Buttons are used for the most important actions you want users to take. They should be:
Secondary actions are used for less important actions such as "Learn more" or "Close" buttons. They should follow all the other content rules outlined for primary buttons.