# Live Indicator

A flat dot with a halo of the same colour that pings outward, for something happening now. With reduced motion the halo holds still.

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

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

## Best practices

- Do: Use it for something happening now, like a live call or a LEAP sync in progress: `green` for live or connected, `orange` for running or waiting.
- Do: Put the words beside it, like "Live" or "Syncing", or set `label` when there is no room for them, so the dot is never the only signal.
- Don't: Use it for a state that has finished, like a sync that completed. The ping says something is happening; use a `Badge` with the result instead.
- Don't: Use it to show that a panel is loading. Use `Spinner` for a short wait, or `Skeleton` while content loads in place.

## Related

- [Status Mark](./status-mark.md)
- [Spinner](./spinner.md)
- [Badge](./badge.md)

## Examples

What the examples import:

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

### Colours

Green for live or connected, orange for running or waiting. Always beside words, so colour isn't the only signal.

```tsx
<div className="text-body flex items-center gap-6">
  <span className="inline-flex items-center gap-1.5">
    <LiveIndicator /> On a call
  </span>
  <span className="inline-flex items-center gap-1.5">
    <LiveIndicator colour="orange" /> Sync running
  </span>
  <span className="text-small text-neutral-text-muted inline-flex items-center gap-1.5">
    Standalone, named for screen readers:
    <LiveIndicator label="Live" />
  </span>
</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colour` | `"green" \| "orange"` | `"green"` | Green for live or connected, orange for running or waiting. |
| `label` | `string` |  | What it means, for screen readers, like "Live". Leave it out when visible text beside it already says so. |
| `className` | `string` |  | Classes added to the root element, merged with its own. Tokens only. |
