Pastel Object Carousel
A cover-flow of pastel portrait cards with floating caption panels. A heavily damped spring carries drags; neighbours tuck behind at 85%, and each layered CSS-3D object (coins, calendar, key, lock, card) turns on Y with its card’s position.
Try it: Drag the cards, use ← → when focused, or tap the dots.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/pastel-object-carousel.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/pastel-object-carousel. You can also copy the source into components/ui/pastel-object-carousel.tsx (view on GitHub).
Usage
import { PastelObjectCarousel } from '@/components/ui/pastel-object-carousel'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
slides | PastelSlide[] | 5 slides | { id, title, caption, object: 'coins'|'calendar'|'key'|'lock'|'card', from, to } |
defaultIndex | number | 1 | Starting slide. |
onAdd / onIndexChange | (slide) => void / (i) => void | — | Plus button and slide callbacks. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Data Widgets components
- Sparkline KPI Tile
A compact metric tile with a live dot, rolling numerals, a delta chip and a smooth sparkline that draws in, streams new points and shows a crosshair value on hover or ← →.
- Budget Area Card
A soft white squircle with a big rolling total, a delta pill and floating soft-3D banknotes. An indigo stepped area chart draws itself in with drifting sparkles and an end arrow, and a tooltip…
- Spend Donut Card
A radial spend breakdown whose rounded arcs sweep in one after another; hovering or focusing a category pops its arc outward and rolls the centre total to that amount.
- Glow Histogram Card
A neon gradient histogram beside the ink stat card: bars rise on a soft spring with glowing caps that fade into the card, values drift live and hover / ← → lifts a bar with its value.
- Contribution Heatmap Tile
A weeks × days activity heatmap: cells pop in on a diagonal wave, the total and streak roll up, and the grid is one roving tab stop where arrows move a ring that announces the day.
- Glow Level Card
The ink stat card with segmented neon level meters: segments light left to right with a bloom, levels re-balance live, and hovering or focusing a row reveals its channel and share.