Content Display
Swipe Card Stack
드래그한 카드를 뒤로 보내며 순환시키는 카드 스택입니다.
Preview
content stack
Swipe Card Stack
click cards to send back
Installation
bash
Copied
bash
Copied
bash
Copied
bash
Copied
Code
typescript
Copied
Props
randomRotation
- Type
- boolean
- Default
- false
- Description
- Whether to rotate cards randomly.
sensitivity
- Type
- number
- Default
- 200
- Description
- Drag distance required to send card back.
sendToBackOnClick
- Type
- boolean
- Default
- false
- Description
- Whether clicking moves a card back.
cards
- Type
- React.ReactNode[]
- Default
- built-in cards
- Description
- Custom card nodes.
autoplay
- Type
- boolean
- Default
- false
- Description
- Whether the stack cycles automatically.