Reference
Timer
Timer, dressed in the paper-and-ink system: monospaced digits that never jitter, quiet action triggers on the control recipe. The parts — Root, Area, Control, Item, Separator, ActionTrigger, Context. Unit labels are plain content, not a machine part.
Root · Area · Control · Item · ItemValue · ItemLabel · ActionTrigger · Separator
#ActionTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
action | TimerAction | — |
#Area
A styled part — no props of its own; it takes the anatomy's shared styling.
#Control
A styled part — no props of its own; it takes the anatomy's shared styling.
#Item
| Prop | Type | Default | Description |
|---|---|---|---|
type | TimePart | — |
#Root
| Prop | Type | Default | Description |
|---|---|---|---|
autoStart | boolean | Whether the timer should start automatically | |
countdown | boolean | Whether the timer should countdown, decrementing the timer on each tick. | |
id | string | The unique identifier of the machine. | |
ids | Partial<{ root: string; area: string; }> | The ids of the timer parts | |
interval | number | 250 | The interval in milliseconds to update the timer count. |
startMs | number | The total duration of the timer in milliseconds. | |
targetMs | number | The minimum count of the timer in milliseconds. | |
translations | timer.IntlTranslations | Specifies the localized strings that identifies the accessibility elements and their states |
| Event | Payload |
|---|---|
complete | — |
tick | details: TickDetails |
#Separator
A styled part — no props of its own; it takes the anatomy's shared styling.