Booking flow and room pages.
Mara Chen
Updated today
A titled container with media, status, meta and optional expandable details.
pnpm dlx shadcn@latest add https://caliperui.site/r/card.jsonBooking flow and room pages.
Mara Chen
Updated today
pnpm dlx shadcn@latest add https://caliperui.site/r/card.json
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. No account needed. The first part also adds Caliper UI’s tokens; import them once as in Installation.
This is the code behind the preview above.
import { Card } from "@/components/ui/card" export function ProjectCard() { return ( <div className="w-full max-w-sm"> <Card title="Harbour redesign" description="Booking flow and room pages." meta="Mara Chen" status="Updated today" details={<p className="text-sm">Scope, milestones and open questions stay with the project.</p>} /> </div> ); }
It exposes status semantics. Changes that matter are announced through a live region.
Keyboard and focus handling comes from Radix dialog: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
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.