Timer
@astryxdesign/core v0.7.1 · Timer
Props
| Name | Type | Default | Description |
|---|---|---|---|
startTime | number | — | Unix time in milliseconds when the operation began. Omit it to start at mount. |
format | 'elapsed' | 'clock' | 'elapsed' | elapsed uses compact units and drops seconds after one hour. clock stays second-precise. |
type | TextType | 'inherit' | 'supporting' | Semantic text type, matching Timestamp. inherit skips the Text wrapper. |
size | 'sm' | 'md' | 'lg' | 'xl' | — | Explicit font size. Overrides the size that comes from type. |
color | 'primary' | 'secondary' | 'accent' | 'inherit' | 'disabled' | 'secondary' | Text color. disabled uses the disabled text token. |
weight | 'regular' | 'medium' | 'semibold' | 'bold' | — | Font weight override. |
Theme
The root class is astryx-timer. Digits use tabular numbers. data-color selects primary, secondary, accent, or disabled.