Box pack
An order being packed. Each item drops into the open box in turn and disappears behind its front, the lid comes down, tape sweeps across it and a Packed tag settles on the front.
When to use
- Order confirmation and fulfilment screens.
- A packing step in a warehouse or returns flow.
When not to use
- Boxes with more than four items; summarise instead.
- Status that changes back and forth quickly.
Installation
pnpm dlx shadcn@latest add @caliper/box-pack
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
BoxPack
3 props
Also accepts the native props of its root element and a ref.
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/box-pack.mdThe index of every part is at /llms.txt.