Pro
Object viewer
A physical thing you can turn, with notes pinned to its faces. It is a true six-faced cube; each face is whatever you pass, and a pin is a child of its face, so it turns with it and disappears when the face turns away.
pnpm dlx shadcn@latest add @caliper/object-viewerWhen to use
Use it for
- Packaging proofs, product reviews and hardware documentation.
- Pinning feedback to a place on a physical object.
Skip it when
- Photographs or product models with real 3D geometry; use a model viewer.
Decisions
Why it is built this way, so you know what to keep when you change your copy.
Behaviour
- Notes are buttons
- Choosing a note turns the object to its face and opens its card. Pins repeat the list and are not read out.
- Several ways to turn
- Drag, the arrow keys (15 degrees), the numbers 1 to 6, or the face buttons, so no one has to drag.
Installation
pnpm dlx shadcn@latest add @caliper/object-viewer
Adds its 6 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.
Usage
Import it from your copy of the source. The example behind the preview comes with the source.
import { ObjectViewer } from "@/components/ui/object-viewer"
The worked example comes with Pro
The 41-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
ObjectViewer
component
Accessibility
It exposes group and img semantics, with aria-roledescription, aria-label, aria-pressed and aria-live kept in step with state. Changes that matter are announced through a live region.
No custom key handling; Tab and the native activation keys do the work.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.