WorkingLine
import { WorkingLine } from "@surfaces-ui/components";
What an agent or a long job is doing now, in words, with a chart that keeps moving and how long it has been. Give it only what is known to be happening. A change of words is read out; the time is not. The chat shows one while a reply is on its way.
Props
| Prop | Type | Required | What it is |
|---|---|---|---|
label | string | yes | What is being done now: "Reading the orders table…". |
since | number | When it began, in ms since 1970 (Date.now()). Without it no time is shown. | |
seed | string | Picks the chart, so the same turn keeps the same one. | |
announce | boolean | Reads a change of words out. Defaults to true; false inside something that is itself read out. |
Example
<WorkingLine label="Reading the orders table…" seed="turn 1" />