Skip to content
Onycx-ui
ESC

Coverflow Carousel

Browse a gallery in a five-card perspective carousel with arrow controls, a slide counter, and a link to the collection.

Dependencies
No extra packages
Size
344 lines
Controls
9 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/coverflow-carousel.json

1 · Dependencies

None beyond React and Tailwind.

2 · Copy the source

components/onycx/coverflow-carousel.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the coverflow-carousel.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.

Props

PropTypeDefaultDescription
itemsCoverflowItem[]—{ title, label, tag?, image, imageAlt?, href? }; designed for five cards.
headingstring"Our spaces"Display title (set in capitals) and the carousel's accessible label.
introstring"Considered rooms.|Different possibilities."Kicker left of the title; | breaks the line on wide stages. Empty hides it.
seriesstring"THE CONCEPT SERIES / 01—05"Note right of the title, shown on stages wider than 860px. Empty hides it.
linkLabel / linkHrefstring"View the collection" / "#"Underlined link in the bottom bar. Empty label hides it.
autoplay / intervalboolean / numberfalse / 4200Pauses on hover, focus, hidden tabs and reduced motion.
yaw / tiltnumber10 / 5Inner side-card yaw and roll; the outer pair uses 1.6x yaw and 1.8x roll (16deg / 9deg).
backgroundstring"#201c20"Panel colour.
accentstring"#854f6c"Focus outline colour (mauve in the source).