Skip to content
caliper ui pro docs

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.

Pro
Ready to pack

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

terminal
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.

PropTypeDefaultDescription
packed *boolean—Packs the box when true and unpacks it when false.
itemsReactNode[]["Shirt", "Mug", "Book"]Up to four things that go in, each a short label or small glyph.
labels{ packing: string; packed: string; }{ packing: "Ready to pack", packed: "Packed" }The line under the box, per state.

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.md

The index of every part is at /llms.txt.

More in Surfaces