Loop Deck

Infinite loop carousel with card deck style presentation

$ npx @hritik-sharmaa/repeat-ui add carousel-loop-deck
Category
Carousel
Added
Aug 17, 2025
Version
2.0.0
Packages
None
Flavors
TS · JS · Tailwind · CSS
Live preview
Mountain Vista
1

Mountain Vista

Nature's Majesty

Breathtaking mountain landscapes that inspire wanderlust

Ocean Waves
2

Ocean Waves

Coastal Beauty

The rhythmic dance of waves against pristine shores

Forest Path
3

Forest Path

Woodland Serenity

Peaceful trails through ancient woodland sanctuaries

Desert Dunes
4

Desert Dunes

Golden Horizons

Endless golden sands sculpted by desert winds

1 / 4
Customize
3000ms
320px
420px
48px
8°
import CarouselLoopDeck from "@/components/repeat-ui/carousel-loop-deck/preview";

<CarouselLoopDeck items={items} />

Installation

  1. Run the command

    Adds the files and installs any packages they need. Works with npm, pnpm, yarn and bun.

    $ npx @hritik-sharmaa/repeat-ui add carousel-loop-deck --variant ts-tailwind
  2. Use it

    The files are in components/repeat-ui/carousel-loop-deck/.

    import CarouselLoopDeck from "@/components/repeat-ui/carousel-loop-deck/preview";
    
    export default function Page() {
      return <CarouselLoopDeck />;
    }

Props

PropTypeDefaultDescription
itemsLoopDeckItem[]-Cards: { id, title, subtitle, image, description }.
autoPlaybooleantrueAdvance on its own; pauses while hovered.
autoPlayIntervalnumber3000Milliseconds per card.
accentColorstring"#60a5fa"Ring, subtitle and dot colour.
cardWidthnumber320Card width in pixels.
cardHeightnumber420Card height in pixels.
spreadnumber48How far the neighbours fan out, in pixels.
tiltnumber8How far the neighbours rotate, in degrees.
showCounterbooleantrueShow the 1 / 4 counter.
classNamestring""Extra classes for the root element.

More carousel

See all