# Shimmer

Status-line text with one narrow highlight that crosses it on the shared clock while work is live.

Live variants: https://design.arcadia.is/components/shimmer

```tsx
import { Shimmer, useSyncedAnimations } from "@arcadia/ui";
```

```tsx
import { PineSweep, Shimmer } from "@arcadia/ui";

<div {...sx("cmp-stream", cmp.stream)}>
  <span {...sx("cmp-status", cmp.status)}>
    <PineSweep size="md" /> <Shimmer>Working</Shimmer>
  </span>
  <span {...sx("cmp-status", cmp.status)}>
    <Shimmer>Reading</Shimmer> <span {...sx("cmp-detail", cmp.detail)}>src/settings/dialog.tsx</span>
  </span>
  <span {...sx("cmp-status", cmp.status)}>
    <Shimmer tone="tertiary">Summarizing context</Shimmer>
  </span>
</div>
```

## Accessibility

The sweep is visual only; the words are plain text and read normally. Put the live-region role on the status container, not on the shimmer, and announce a change of step ("Reading", then "Editing") rather than every update. With reduced motion the sweep stops and the text holds its tone colour.

## API reference

### Shimmer

- `tone` (`"secondary" | "tertiary"`, default `"secondary"`): `secondary`: text-2 at rest, sweeping to text-1 (live tool verbs, "Thinking"). `tertiary`: text-3 sweeping to text-2 (tail status, "Summarizing context").
- `active` (`boolean`, default `true`): Sweep while true. False renders plain text in the tone colour, no motion.
- `emphasis` (`string`): An exact substring of a plain label to emphasize in both the text and its decorative beam.
- `rootStyle` (`RootStyle<ShimmerKnobs>`): Typed StyleX override: layout and the `--shimmer-*` knobs.

Rest props go to `<span>` props and `render`.
