Argent

TimerRing

A line that runs round the inside of a plate and empties as time runs out.

13 seconds left
9 seconds left
import { Plate, TimerRing } from '@rajatweb/argent'

<Plate label="Rest">
  <TimerRing label="Rest" value={left / total} valueText={`${left} seconds left`} />
  {left}
</Plate>

Props

PropTypeDefaultWhat it does
label requiredstringAccessible name, for example "Rest remaining".
value requirednumberHow much is left, 0 to 1.
runningbooleantrueHides the line while nothing is running.
valueTextstringWhat a screen reader says for the value, for example "12 seconds left".

Accessibility

  • Announced as a progress bar with your words.

Do

  • Show the time as text as well.

Don’t

  • Use it outside a plate.