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

PropTypeRequiredWhat it is
labelstringyesWhat is being done now: "Reading the orders table…".
sincenumberWhen it began, in ms since 1970 (Date.now()). Without it no time is shown.
seedstringPicks the chart, so the same turn keeps the same one.
announcebooleanReads a change of words out. Defaults to true; false inside something that is itself read out.

Example

tsx
<WorkingLine label="Reading the orders table…" seed="turn 1" />