Momentum Rail - React Component | Kokonut UI

Momentum Rail

A card rail you flick with momentum, snapping on a spring, with scroll-driven cover-flow depth and parallax.

Install with Agentbunnpmpnpm

Open in Copy code

› Add the carousel-cards component from Kokonut UI to this project with npx shadcn@latest add https://kokonutui.com/r/carousel-cards.json, then show me how to use it.

Weekend escapes

Card 01 / of 08

Weekend in Lisbon

Lisbon, Portugal

4.92 (318) · Oct 24 – 26 €340 total

Slow days in the Dolomites

Val Gardena, Italy

4.97 (142) · Nov 3 – 7 €610 total

Two nights in the dunes

Merzouga, Morocco

4.88 (96) · Nov 14 – 16 €280 total

Lake cabin under the aurora

Inari, Finland

4.95 (210) · Dec 5 – 8 €520 total

Island hopping by ferry

Naxos, Greece

4.90 (187) · May 9 – 14 €740 total

Late trains and night markets

Tokyo, Japan

4.96 (402) · Mar 20 – 24 €890 total

Rice terraces at dawn

Ubud, Indonesia

4.91 (133) · Jan 12 – 15 €390 total

Coast road, windows down

Big Sur, United States

4.89 (158) · Apr 2 – 5 €560 total

Installation

Momentum Rail is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/carousel-cards.tsx, so the code is yours to change.

Copy Text

npx shadcn@latest add @kokonutui/carousel-cards

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/carousel-cards.tsx.

Copy Text

npm install lucide-react

Usage

Copy Text

import CarouselCards from "@/components/kokonutui/carousel-cards";

export default function Example() {
  return <CarouselCards />;
}

Props