Use spinner() for active wait states with a label and skeleton() to reserve space cleanly while async content loads.
spinner()
skeleton()
<ComponentPreview title="Spinner & Skeleton Placeholders">
[
{"type": "spinner", "text": "Waiting for agent tool execution..."},
{"type": "skeleton", "variant": "text", "width": "75%", "height": "20px"},
{"type": "skeleton", "variant": "rect", "width": "100%", "height": "56px"}
]
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Component | Parameter | Description |
|---|---|---|
| spinner | text | Animated spinner with accessible status label. |
spinner
text
| skeleton | width, height, variant | Placeholder dimensions (width, height) and shape (text, rect, circle). |
skeleton
width
height
variant
rect
circle