Aura
Playground
State
Colour
Install
npm install @shavin/fximport { Aura } from "@shavin/fx";Works with
React
Client component; Next.js and any React 18+ app
Remotion
Frame-exact through FxTimeProvider or time
States
Changing state eases between looks instead of cutting. "listening" follows level; "speaking" runs its own rhythm, or follows level when it is above 0.
idle
thinking
working
listening
speaking
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| state | "idle" | "thinking" | "working" | "listening" | "speaking" | "idle" | Which state. Changes ease over a few hundred ms. |
| size | number | 48 | Diameter in px. |
| level | number | 0 | Live input level 0 to 1; drives listening, and speaking when above 0. |
| speed | number | 1 | Speed multiplier. |
| label | string | the state | Accessible name (role="img"). Pass "" to hide it when a visible label sits beside it. |
| color | "fg" | "brand" | "muted" | string | { light: string; dark: string } | - | Colour of the orb: a theme token, any CSS colour or var(--token), or a { light, dark } pair. Sets the root's CSS color; without it the orb uses currentColor. |
| className | string | - | A text colour class (e.g. text-success) also colours the orb when color is unset (default the brand-contrast text colour). |
| time | number | - | Controlled time in seconds (e.g. frame / fps in Remotion): the orb draws that moment and runs no clock of its own. Also read from FxTimeProvider. |
The dotted set is Murmur.
Anatomy
import { Aura } from "@shavin/fx";
<Aura state="thinking" />
<Aura state="listening" level={micLevel} size={96} />