{"slug":"empty-state","name":"EmptyState","category":"Feedback & Status","summary":"Explains why an area has no content and offers the next step.","status":"stable","since":"0.2.0","import":"import { EmptyState } from '@elluzion/iv-ui';","usage":["`title` states the condition; `description` says what to do next.","`action` holds the primary button; `icon` takes a snippet.","Use `children` for secondary detail below the description."],"props":[{"name":"title","type":"string","default":"''","description":"Headline for the empty state.","required":false,"bindable":false},{"name":"description","type":"string","default":"''","description":"Explanation of why the area is empty.","required":false,"bindable":false},{"name":"className","type":"string","default":"''","description":"Extra classes merged onto the root element.","required":false,"bindable":false}],"events":[],"snippets":[{"name":"icon","type":"Snippet","default":null,"description":"Illustration or icon shown above the title.","required":false,"bindable":false},{"name":"action","type":"Snippet","default":null,"description":"Primary action, usually a button.","required":false,"bindable":false},{"name":"children","type":"Snippet","default":null,"description":"Additional content below the action.","required":false,"bindable":false}],"types":[],"manual":[],"tokens":["--iv_border","--iv_font-sans","--iv_font-ui","--iv_foreground","--iv_foreground-dim","--iv_leading-base","--iv_leading-tight","--iv_radius-sm","--iv_spacing-2xl","--iv_spacing-sm","--iv_spacing-xs","--iv_surface-elevated","--iv_text-lg","--iv_text-sm","--iv_weight-semibold"],"cssHooks":["iv-empty-action","iv-empty-description","iv-empty-icon","iv-empty-state","iv-empty-title"],"accessibility":{"notes":["The title renders as an `h3`, so place the state inside a section with a higher-level heading.","Use a real button or link in `action`; the empty state itself is not interactive.","Keep the description text readable at small sizes; it uses the UI mono voice."]},"related":[{"title":"Alert","summary":"An inline message for information, success, warning, or error.","url":"/components/alert","kind":"Component"},{"title":"Skeleton","summary":"A pulsing placeholder that holds the shape of loading content.","url":"/components/skeleton","kind":"Component"},{"title":"Card","summary":"A bordered surface for grouped content and actions.","url":"/components/card","kind":"Component"},{"title":"Progress","summary":"Shows how much of a task is complete.","url":"/components/progress","kind":"Component"}],"examples":[{"id":"basic","title":"Basic","description":"A title and one line of explanation.","code":"<script lang=\"ts\">\n\timport { EmptyState } from '@elluzion/iv-ui';\n</script>\n\n<EmptyState\n\ttitle=\"No deployments yet\"\n\tdescription=\"Deployments appear here once the first build reaches production.\"\n/>"},{"id":"action","title":"With action","description":"The primary action sits below the description.","code":"<script lang=\"ts\">\n\timport { Button, EmptyState } from '@elluzion/iv-ui';\n</script>\n\n<EmptyState\n\ttitle=\"No saved queries\"\n\tdescription=\"Save a query to reuse it from the command palette.\"\n>\n\t{#snippet action()}\n\t\t<Button variant=\"primary\" size=\"sm\">Create query</Button>\n\t{/snippet}\n</EmptyState>"},{"id":"icon","title":"With icon","description":"An icon snippet anchors the state without adding noise.","code":"<script lang=\"ts\">\n\timport { IconArchive } from '@tabler/icons-svelte';\n\timport { EmptyState } from '@elluzion/iv-ui';\n</script>\n\n<EmptyState\n\ttitle=\"Archive is empty\"\n\tdescription=\"Archived projects are kept for 90 days before they are removed.\"\n>\n\t{#snippet icon()}<IconArchive size={20} />{/snippet}\n</EmptyState>"}],"markdown":"/components/empty-state.md","page":"/components/empty-state"}