Content Display

Card Carousel

드래그와 자동 재생을 지원하는 3D 카드 캐러셀입니다.

Preview

content media

Card Carousel

autoplay through cards

Common UI

Common UI components are coming soon!

Text Animations

Cool text animations for your projects.

Animations

Smooth animations for your projects.

Components

Reusable components for your projects.

Backgrounds

Beautiful backgrounds and patterns for your projects.

Common UI

Common UI components are coming soon!

Text Animations

Cool text animations for your projects.

Installation

bash
Copied
1pnpm dlx shadcn@latest add https://ryong.dev/r/carousel.json

Code

typescript
Copied
1import { Carousel } from "@/components/carousel"23export default function Example() {4  return <Carousel autoplay loop pauseOnHover />5}

Props

PropTypeDefaultDescription
itemsCarouselItem[]built-in itemsCarousel cards.
baseWidthnumber300Carousel width.
autoplaybooleanfalseWhether to advance automatically.
autoplayDelaynumber3000Delay between autoplay steps.
pauseOnHoverbooleanfalseWhether hovering pauses autoplay.
loopbooleanfalseWhether the carousel wraps.
roundbooleanfalseWhether to render the round style.

Reference

ReactBits Card Carousel