TimerRing
A line that runs round the inside of a plate and empties as time runs out.
import { Plate, TimerRing } from '@rajatweb/argent'
<Plate label="Rest">
<TimerRing label="Rest" value={left / total} valueText={`${left} seconds left`} />
{left}
</Plate>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
label required | string | Accessible name, for example "Rest remaining". | |
value required | number | How much is left, 0 to 1. | |
running | boolean | true | Hides the line while nothing is running. |
valueText | string | What 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.