# EmptyState

Shared empty-state callout block for list rails, table gaps, and detail sidebars.

[All components](https://rickylabs.github.io/netscript/design-system/components/) · [Theme builder](https://rickylabs.github.io/netscript/create/) · [Implementation source](https://github.com/rickylabs/netscript/blob/main/packages/fresh-ui/registry/components/ui/empty-state.tsx)

## Live preview

[Open live empty-state preview](https://rickylabs.github.io/netscript/assets/fresh-ui/preview/?component=empty-state&theme=studio-utility)

## Install

```bash
netscript ui:add empty-state
```

## Usage and examples

The preview runs this JSX with the installed components. Import any composed primitives from your UI directory.

```tsx
import { useState } from 'preact/hooks';
import { EmptyState } from '@app/components/ui/empty-state.tsx';

export function Example() {
  const [value, setValue] = useState('standard');
  const [open, setOpen] = useState(false);
  const [notice, report] = useState('');
  return (<><div><EmptyState heading="No orders yet">Create your first order to get started.</EmptyState></div><p role="status">{notice}</p></>);
}
```

## Props

Generated from native `deno doc --json --private` over the shipped implementation. Compound component props retain their owning interface; native attributes pass through where declared.

| Owner | Prop | Type | Optional | Description |
| --- | --- | --- | --- | --- |
| `EmptyStateProps` | `children` | `Renderable` | No |  |
| `EmptyStateProps` | `class` | `string` | Yes |  |
| `EmptyStateProps` | `heading` | `Renderable` | Yes |  |

```typescript
EmptyStateProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "class" | "children">
```

## Keyboard

Presentation component; no component-specific keyboard interactions.

## Tokens

Semantic contract roles: `border/default`, `radius/card`, `space/section/gap`, `space/stack/gap`, `surface/muted`, `text/muted`.

CSS custom properties referenced directly: `--ns-border`, `--ns-card-padding`, `--ns-fg`, `--ns-font-sans`, `--ns-leading-body`, `--ns-leading-heading`, `--ns-muted-fg`, `--ns-radius-card`, `--ns-radius-md`, `--ns-space-1`, `--ns-space-4`, `--ns-text-body`, `--ns-text-heading`, `--ns-text-sm`, `--ns-tracking-body`, `--ns-tracking-heading`, `--ns-weight-body`, `--ns-weight-heading`.

## Contract and compatibility

Accessibility pattern: noninteractive presentation

- Native DOM attributes pass through where the implementation accepts them.

Design contract values marked planned are not implementation props. The props above describe what ships today.
