# Empty Value

An em dash in a muted tone for an empty table or detail cell. Never "N/A", "None" or a blank. Screen readers hear "Empty".

- Beta: ready to use; its API can still change in a minor release.
- Category: Status & indicators

```tsx
import { EmptyValue } from "@leap-crm/design-system";
```

## Best practices

- Do: Use it in every empty table cell and detail row, like a contact with no phone number, so a missing value looks the same everywhere.
- Do: Set `label` when "Empty" is not specific enough, like "No referrer", so a screen reader says what is missing.
- Don't: Write "N/A", "None" or leave the cell blank. A blank cell reads as still loading or broken.
- Don't: Use it for a whole list or tab with nothing in it. Use `EmptyState`, which says what will appear and offers one action.

## Related

- [Empty State](./empty-state.md)
- [Truncate](./truncate.md)

## Examples

What the examples import:

```tsx
import { EmptyValue } from "@leap-crm/design-system";
```

### In details

```tsx
<div className="text-body grid w-64 grid-cols-2 gap-y-2">
  <span className="text-neutral-text-muted">Email</span>
  <span>jane@citizen.com.au</span>
  <span className="text-neutral-text-muted">Phone</span>
  <EmptyValue />
  <span className="text-neutral-text-muted">Referrer</span>
  <EmptyValue label="No referrer" />
</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string` | `"Empty"` | What screen readers hear instead of a dash. "Empty" by default. |
| `className` | `string` |  | Classes added to the root element, merged with its own. Tokens only. |
