WingoUI
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime Picker
Forms
Address InputCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text Editor
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselImage CropperImage LightboxLocation MapQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Gravity Letters
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowPost Listing WizardPricing PageRegister PageSettings PageUsers Admin Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryThemeCredits

Mobile

Swipe Deck

MobileSwipe Deck
Sticky CTA BarSwipeable Tabs
Live props
Behavior
directions
haptics
Appearance
visibleCards3
stack
rotation12°
leftTone
rightTone
upTone
radius
stamps
Layout
showActions
showUndo
State
disabled
defaultIndex0
Code
import { SwipeDeck } from "@/components/ui/swipe-deck"

<SwipeDeck />
Pro

v1.0.0·Added in 1.0.0

A stack of cards you decide on one at a time: swipe right to accept, left to reject, optionally up for later, with undo.

Drag the top card with a finger or the mouse: it follows and tilts, a stamp (Accept, Reject, Later) fades in on the side you are heading for, the matching round button tints and grows, and the cards behind rise into place. Past a quarter of the card (or with a quick flick) the stamp settles at full strength and the phone ticks; let go there and the card flies off at the speed of your throw and the next one is on top, let go earlier and it springs back. With only left and right allowed, vertical swipes on the card still scroll the page and the card only gives a little up and down. The round buttons under the deck throw the card the same way; the small undo button (a circular arrow) brings the last card back, flying in from the side it left. A save that fails (a rejected onSwipe promise) brings the card back with an error pill. Keyboard: Tab to the card, Left / Right (and Up when allowed) decide with the same animation, Backspace or Cmd/Ctrl+Z undo, and focus follows to the next card and to the empty state at the end. Buttons and links inside a card stay clickable and never start a drag. Every decision is announced to screen readers. With reduced motion the card does not tilt and leaves with a short fade and slide.

Add to a project

npx wingo-ui@latest add swipe-deck

Pro item: the CLI needs a Pro account. See plans

Dependencies

lucide-reactmotionbuttonempty-stateuse-controllable-statehapticsmotiontonesui-config

Files

  • components/ui/swipe-deck.tsx

See also

CardEmpty StateHapticslibListSlide To Confirm
PreviousSticky CTA BarNext Swipeable Tabs
Approve expensesNorthwind CRM · September 2026
6 left

Approved: 0·$0.00Rejected: 0

Hilton BostonSep 19, 2026 · F 20931
Total$412.00
LodgingCompany card ····4821
Before tax
$371.17
Tax 11%
$40.83

One night at the Construct Expo fair, no breakfast.

Michael ReedSales
Requested
Amtrak New York–ChicagoSep 18, 2026 · IC 532
Total$156.40
TravelCompany card ····4821
Before tax
$140.90
Tax 11%
$15.50

Ticket for the Greenleaf Pharmacy visit, coach class.

Ryan MitchellSales
Requested
FedExSep 16, 2026 · TRK 7120
Total$86.00
ShippingCompany card ····4821
Before tax
$71.07
Tax 21%
$14.93

Sample return to Summit Logistics, order #1042.

Andrew CollinsLogistics
Requested
Whole Foods MarketSep 15, 2026 · RC 0412
Total$214.50
HospitalityCompany card ····4821
Before tax
$193.24
Tax 11%
$21.26

Coffee and snacks for the Tech Solutions meeting.

Michael ReedSales
Requested
Reject
Approve

Swipe or use the Left and Right arrows. Backspace undoes.

Drag the card with the mouse, or Tab to it and use the arrow keys

directionsleft, rightrotation12°hapticsonindex0