사용법
가운데 카드는 정면에, 주변 카드는 원근감 있게 배치돼요. 방향키로도 이동할 수 있어요.
2 / 4
인터페이스
PerspectiveCarouselProps
| 속성 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| items* | readonly PerspectiveCarouselItem[] | — | 캐러셀 항목 |
| ariaLabel | string | 원근 캐러셀 | 접근성 라벨 |
| initialIndex | number | — | 초기 활성 인덱스 |
| onActiveIndexChange | (index: number) => void | — | 활성 인덱스 변경 콜백 |
| className | string | — | 루트 클래스 |
| style | CSSProperties | — | 인라인 스타일·CSS 변수 |
PerspectiveCarousel 컴포넌트 Props 표
가져오기
모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.
@import "@goldtreedev/ui/motion.css";
import { PerspectiveCarousel } from "@goldtreedev/ui";