NexoreUI
2.0
InstallationComponentsIconsTemplatesNewGeneratorBetaNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesGeneratorBetaNexore MakeCreate Project
InstallationComponents OverviewIcons
Components (72)
ButtonAction ButtonsInputSpecialized InputsForm ControlsCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerceMedia & Audio
Dialog (Modal)Overlays & DrawersAlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial & ChatTheme Toggle
Aurora Border CardAurora Search PillAI Prompt InputCommand PaletteCode Block
Physics Showcase3D Product CardsLive 3D ObjectSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
ComponentsSwipe Deck

Swipe Deck

Gesture card stack with spring return, fling discharge, and cyclic ordering.

PreviousMoiré Grating
NextCamera Mirror
ResourcesFull TemplatesProProject StudioSource on GitHub

Swipe Deck

Tactile gesture card deck with physical spring relaxation, velocity-driven fling discharge, haptic vibration impulses, and infinite cyclical card recycling.

Interactive Stage

MoveDrag me anywhere.
SlowSprings settle, they do not snap.
PressA fast flick flies off the table.
PauseA slow drag comes back.
LookThe next card leans in.
LoopAnd then it starts over.
Drag top card left or right, or flick fast to dismiss
Controls
Spring Stiffness220
Spring Damping22
Drag Tilt Factor8°
Stack Offset16px
Corner Radius26px

Installation & Usage

component.tsx
1import { SwipeDeck } from "nexoreui";
2
3export function PhysicalDeckDemo() {
4 return (
5 <div className="relative h-[480px] w-full overflow-hidden rounded-2xl flex items-center justify-center">
6 <SwipeDeck
7 stiff={220}
8 damp={22}
9 tilt={8}
10 fling={650}
11 depth={3}
12 offset={16}
13 radius={24}
14 bg="#0f1014"
15 className="h-full w-full"
16 />
17 </div>
18 );
19}

API Reference

API Reference (Props)

PropTypeDefaultDescription
stiffnumber220Hooke's law spring stiffness restoring position.
dampnumber22Harmonic damping preventing infinite oscillation.
tiltnumber8Rotational tilt angle in degrees per 100px drag offset.
flingnumber650Minimum release velocity threshold for flick discharge (px/s).
depthnumber3Number of cascading visible background cards in stack.
offsetnumber16Vertical stacking offset distance in pixels.
shrinknumber0.06Scale reduction factor per card depth level.
radiusnumber26Card corner border radius in pixels.
liftnumber1.04Active card scale boost when grabbed.
bgstring"#0f1014"Container stage backdrop fill.
cardsDeckCardItem[]DEFAULT_CARDSCustom array of cards with word, bg, fg, and text.
pausedbooleanfalsePause animation loop manually.