Aliases
blank slate
EmptyStateEmpty-content message with an icon and optional action.
Create an item.
Aliases
blank slate
Foundations
EmptyState when no content is available or no results match a filter.blank-slate shell
root Carries spacing, tone, and structural rhythm.
optional visual cue
icon Optional symbol or lightweight illustration cue.
primary heading
title Short statement of the missing or empty condition.
supporting guidance
description Clarifies why the space is empty or what to do next.
optional call-to-action area
actions Supports the primary next step.
| Name | Type | Default | Description |
|---|---|---|---|
tone | 'neutral' | 'brand' | 'warning' | 'neutral' | Chooses the blank-slate tone. |
size | 'sm' | 'md' | 'lg' | 'md' | Sets the component size. |
title | string | 'No items' | Primary empty-state heading. |
description | string | '' | Optional explanation or guidance. |
theme | ThemeContract | — | Sets the theme used to resolve component styles. |
| Name | Description |
|---|---|
icon | Optional icon or symbol. |
default | Optional richer body content. |
actions | Optional actions area. |
Variants
neutral: Neutral empty-state styling.brand: Brand-colored empty-state styling.warning: Warning styling for an empty condition that needs attention.Sizes
sm: Compact inline empty state.md: Default empty state.lg: More spacious blank-slate surface for isolated pages.States
rest: Static guidance surface.Semantics
EmptyState is a structural guidance surface and inherits semantics from its content.Keyboard
Screen readers
Checklist
An empty-state message with an icon.
<EmptyState title="No items yet" description="Create your first item to get started."><svelte:fragment slot="icon">◎</svelte:fragment></EmptyState> Use the brand tone for the primary empty state.
<EmptyState tone="brand" title="Start your workspace" description="Invite the first team members to begin." /> Warning tone works when the absence may be unexpected or corrective.
<EmptyState tone="warning" title="No matching results" description="Adjust the filters and try again." /> Calculated fixtures; browser evidence is not collected. Layout estimates use declared text behavior and maximum token values.
size=md|tone=neutral
size=md|tone=brand
size=lg|tone=danger