ChartLoader

import { ChartLoader } from "@surfaces-ui/components";

A small chart that draws itself and keeps moving, the same one for as long as the wait lasts: one of fifteen. Decoration beside words that say what is waited for, so it is hidden from assistive technology; use Loading or WorkingLine for the two together.

Props

PropTypeRequiredWhat it is
chart"stacked" \"scatter" \"gantt" \
seedstringPicks the chart: the same words always pick the same one.
sizenumberIts width, in px (or any CSS length). Defaults to 2.5rem.

Example

tsx
<ChartLoader chart="sankey" size={160} />