Loader
Loading example…
Animated waiting indicator. With reduced motion the dots stay still.
Import
Section titled “Import”import { Loader } from "@jcsoftdev/ui/ai";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/ai/loader.
<Loader variant="dots" size="md" label="Escribiendo…" />| Prop | Type | Default | Description |
|---|---|---|---|
variant |
"dots" | "typing" |
"dots" |
dots is the bare indicator; typing wraps it in a bubble with a label. |
size |
"sm" | "md" |
"md" |
|
label |
string |
"Escribiendo…" |
Spoken label (role="status"); shown as text in the typing variant. |
className |
string |
* marks a required prop.
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/ai/loader/loader.tsx