GoldTreeDevGTD UI

문서 제목, 아이콘 이름, 앱 이름으로 검색할 수 있어요.

전체 문서 보기 이동 · Enter 열기 · Esc 닫기

CardSwipeCarousel

New

카드를 좌우로 넘기는 스와이프 중심 캐러셀이에요.

사용법

카드를 가로로 스와이프하거나 방향키로 이동해 보세요.

인터페이스

CardSwipeCarouselProps

속성타입기본값설명
items*readonly CardSwipeCarouselItem[]캐러셀 항목
ariaLabelstring카드 스와이프 캐러셀접근성 라벨
initialIndexnumber초기 활성 인덱스
onActiveIndexChange(index: number) => void활성 인덱스 변경 콜백
classNamestring루트 클래스
styleCSSProperties인라인 스타일·CSS 변수

CardSwipeCarousel 컴포넌트 Props 표

가져오기

모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.

@import "@goldtreedev/ui/motion.css";

import { CardSwipeCarousel } from "@goldtreedev/ui";
CardSwipeCarousel · 모션 UI | GoldTreeDev Docs