Morph loader
A loader whose shape morphs between forms while waiting.
Last deploy 2 hours ago by Ravi Patel
When to use
- A brand moment during a longer wait.
When not to use
- The wait is short.
- Space is tight; use a spinner.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/morph-loader
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
MorphLoader
4 props
PropTypeDefaultDescription
status *MorphStatus—
labelstring—What is happening, announced and shown beside the shape when given.
sizenumber40
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/morph-loader.mdThe index of every part is at /llms.txt.