Skip to content

Timer

@astryxdesign/core v0.7.1 · Timer

Props ​

NameTypeDefaultDescription
startTimenumber—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.
typeTextType | '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.