Micro-interactions

Swipe Actions

Pro

List rows you swipe to show actions, like in iOS Mail. Drag a row and its buttons slide in from the side. Swipe all the way and the outer action fills the row and runs. An action like Archive then folds the row away. A quick flick works too. With full swipe off, the row pushes back when you pull past the last button. With a keyboard, the arrow keys show the actions and Enter runs one.

Install

Props

What It Demonstrates

Swipe to dismiss
Dragging an element off-screen to close it, like a drawer or toast.
Drag
Moving an element by grabbing it, often with momentum when released.
Rubber-banding
Resistance and snap-back when you drag past a boundary (the iOS overscroll feel).
Velocity
How fast and in which direction an element is moving. A spring carries it into the next animation when interrupted, so a flicked element keeps its speed.
Spring
Motion driven by physics (tension, mass, damping) rather than a set duration.
Accordion / Collapse
A section smoothly expands and collapses its height to show or hide content.

Related Components

Appears In