All components

48 components

React Micro-interactions for Buttons, Toggles and Forms

Micro-interactions are the answers an interface gives when someone acts: a button that shows it is saving, a toggle that stretches on its way across, a heart that bursts when liked, a slider that gives a little at its ends. These React components respond to clicks, taps and keys with motion that confirms what happened. Every one is a real button, input or switch underneath, so keyboards and screen readers get the same answers the mouse does.

A button that leans toward the cursor with a springy, physical pull.

A button that fills while held, so destructive actions can never happen by accident.

Morphs from its label to a spinner, then to a drawn tick or a shake, so every save feels answered.

A deck you swipe through: fling the top card and it tucks in at the back.

Cards that morph smoothly into a full detail view, then fold back into place.

Bars cover the key facts like a classified file, then lift one by one on scroll, hover or click.

Accessible tabs with a sliding indicator and soft content transitions.

A floating icon bar that magnifies and lifts around the pointer, with tooltips and a gliding active indicator.

A ⌘K palette with live filtering, grouped results and a highlight that glides between them.

A ⌘K command palette with recent actions, fuzzy search across pages and commands, and scope tabs.

A switch whose knob stretches like liquid on its way across, then settles.

One-time-code boxes where each digit pops in, with paste and phone autofill built in.

Stacking notifications with swipe-to-dismiss, hover-to-pause and variants.

Progress through steps: the line fills, and each finished step draws its own tick.

FAQ panels that open with a smooth, springy height and a turning chevron.

Drag a handle across two layers to compare before and after, smoothly sprung.

A tiled grid where a click sends a wave of light rolling outward.

A complete pricing table: a sliding monthly/yearly switch, prices that roll to their new digits and a featured plan with an orbiting light.

A like or favourite toggle: the heart pops, a ring expands, sparks fly and the count rolls up.

A range slider with give: the value bubble leans as you drag, and pulling past the ends stretches the track like rubber.

A password field with a four-bar strength meter and requirements that tick themselves off as you type.

A mega-menu with one dropdown that glides and resizes between items, its content sliding in from the side you moved towards.

Features as tabs beside one large visual: the active tab fills a progress bar and moves on by itself, pausing while you look.

A drop area whose dashed border flows when a file is dragged over, with a progress bar per file that ends in a drawn tick or a clear error.

A copy-to-clipboard button whose clipboard icon spins into a drawn tick while the label swaps to Copied, without the button changing width.

Keycaps for a keyboard shortcut that press down when you hold the real keys, for command menu hints, docs and onboarding.

An install command in npm, pnpm, yarn and bun, with a sliding pill, a copy button and a choice that follows to every block on the page.

A terminal that plays a session on view: commands type with a human rhythm, output prints and spinners resolve into ticks, then it offers a replay.

Explains code step by step: pick a step and a highlight band springs to its lines, the rest dim, and the panel scrolls them into view.

Build, test and deploy steps run in turn with live timers and a filling line, ending on a pulsing Live badge or a clear failure with a retry.

A button that sends a ripple out from exactly where it was pressed, or from the centre when pressed from the keyboard.

A chunky, tactile 3D button that lifts a little on hover and presses down onto its base when clicked, like a real key.

Confetti ButtonFree account

A celebratory burst of brand-coloured confetti that flies up, flutters as it falls and fades, for sign-ups, purchases and wins.

Confirm by sliding the knob all the way across, for payments and deletions. Tapping the knob or the arrow keys work too.

A round plus button that unfolds into a stack of labelled actions: the plus turns into a cross and each action springs out in turn.

A little pile of instant photos that fans out like a hand of cards on hover, each print lifting clear as you point at it.

Liquid glass you can hold: a domed lens that magnifies and bends the backdrop with a rainbow rim, squashing like jelly as you drag it and casting focused light into its shadow.

A setup checklist for new accounts: a ring fills as tasks are ticked, finished tasks strike through, and the next one opens with its action.

An "On this page" list for docs and long reads: an indicator glides to the section you're reading and the rail fills as you go.

A cookie banner built for UK and EU rules: reject as easily as accept, choose by category, and change your mind later.

A message box for AI products: a gradient border that turns while focused, example prompts that blur in and out, a box that grows as you type, and a send button that becomes a stop button.

A black pill that morphs between states, from a quiet dot to a notification, a music player or a live timer, springing to each new size.

A die-cut sticker whose corner curls up on hover to show its paper back, and peels further as you drag it before springing back down.

A text field that turns what you type into chips that spring into place. Paste a list to add several, and Backspace twice to remove the last.

Stars that fill with a springy preview on hover and send out a burst of sparks when chosen, with the word for each rating rolling in below.

A bell that swings when something new arrives, with a popping unread badge and a panel of notifications you can swipe away.

A two-sided card that turns over in 3D on hover or click, with a sheen that sweeps across and a slight lift as it goes edge-on.

A carousel you can throw: it keeps the momentum of your flick, then springs to the nearest slide, with a progress bar and arrow controls.