kipluo
Included in $29 packInteractionsReact + FlutterLists & inboxes

React Swipe Actions – Swipe-to-Delete & Gesture Reveal Rows

Gesture-driven swipe action rows for React with touch scroll locking, rubber-band resistance, snap thresholds, and full keyboard action buttons.

Live interactive demo · Swipe a row left.
  • M

    Mara Santos

    Pricing page feedback

  • D

    Deploy bot

    Build 482 passed

  • J

    Jun Reyes

    Can we ship Friday?

Motion preview loop
  • M

    Mara Santos

    Pricing page feedback

  • D

    Deploy bot

    Build 482 passed

  • J

    Jun Reyes

    Can we ship Friday?

Live vector preview rendered straight from the same 120 Hz spring engine—no heavy GIF compression artifacts, zero layout shift.

Customization playground

Tune outline, fill, accent, text colour, and shadow direction live above. The snippet updates automatically for copy-and-paste.

Customize

Colours
Shadow
<SwipeAction />

Installation

Install directly into your project source with the Kipluo CLI (React/Tailwind v4) or add the matching Flutter package.

Install

$ npx kipluo add swipe-action

Working code example

swipe-action.tsx
import { SwipeAction } from "@/components/kipluo/swipe-action";

export function InboxRow({ id, subject }: { id: string; subject: string }) {
  return (
    <SwipeAction
      onArchive={() => console.log("Archive", id)}
      onDelete={() => console.log("Delete", id)}
    >
      <div className="p-4 font-medium">{subject}</div>
    </SwipeAction>
  );
}

What Swipe Action does

  • Locks gesture intent on the first few pixels of pointer movement so vertical list scrolling never accidentally triggers a horizontal row swipe.
  • Reveals contextual Archive or Delete actions smoothly behind the row with spring resistance past the snap detent.
  • Pairs every gesture with an accessible focusable Actions button so desktop keyboard and screen-reader users have identical functionality.

Accessibility & sound behavior

Keyboard & screen readers: Each row has an actions button that opens the same actions as a menu; Escape closes any open row.

Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.

Sound cues: A swipe when actions are revealed, a tick as you cross the archive line, a swish and a water drop when a row is archived. Disable per instance with sound={false} or globally via setSoundEnabled(false).

API reference

actionsSwipeActionItem[]
Buttons revealed under the row. Default Archive / Delete.
fullSwipeboolean
A long swipe expands and runs the first action directly. Default true.
directionLocknumber
Pixels before the gesture decides horizontal or vertical. Default 8.
soundboolean
Plays this component's sounds. The global switch setSoundEnabled(false) silences every component. Default true.

Framework compatibility

Platform / ToolStatusDetails
React 18 & 19Full supportZero peer runtime lock-in beyond @kipluo/core.
Next.js App RouterFull supportShips with 'use client' boundaries; SSR-safe hydration.
Vite / Remix / AstroFull supportStandard ESM TypeScript source files you own.
Tailwind CSS v4 & shadcn/uiNativeInherits CSS variables and installs via shadcn registry or CLI.
Flutter (Dart)Native packageMatching spring physics, themes, and PCM audio in packages/flutter/kipluo.

Build it yourself: related tutorials

All tutorials →