Clip timeline
ProTracks of clips under a ruler and a playhead you scrub or play: drag clips (they snap and never overlap), or move them with Alt and the arrows.
pnpm dlx shadcn@latest add @caliper/clip-timelineWhen to use #
Use it for
- Video, audio and presentation editors.
- Scheduling blocks along a single timeline.
Skip it when
- Calendars; use the resource timeline.
Installation #
pnpm dlx shadcn@latest add @caliper/clip-timeline
Adds its 3 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 { ClipTimeline } from "@/components/ui/clip-timeline"
The worked example comes with Pro
The 12-line example behind the preview opens here with a Pro or Team licence.
API reference #
ClipTimeline
component
Accessibility #
It exposes slider, group and status semantics, with aria-label, aria-hidden, aria-valuemin, aria-valuemax, aria-valuenow and aria-valuetext kept in step with state. Changes that matter are announced through a live region.
Motion #
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.