---
name: moveui
description: Motion components and transitions with a sport feel, for React. Use when building or polishing UI that should move well (buttons, tabs, lists, toasts, accordions, loaders and thinking traces for AI agents, dropdowns, popovers, tooltips, modals, drawers, banners, steps, counters, hero backgrounds), or when the user mentions Move UI. Installs pieces with the shadcn CLI and follows the Move UI motion rules.
---

# Move UI

Open-source motion components and transitions for React, built on the movement of sport.
Every piece is plain React and CSS. No animation library. Site: https://moveui-red.vercel.app

## Setup, once per project

1. Install any piece with the shadcn CLI. It brings the tokens with it:
   `npx shadcn@latest add https://moveui-red.vercel.app/r/press.json`
2. Import the tokens once in the root layout:
   `import "@/components/moveui/tokens.css";`

Files land in `components/moveui/<piece>/`. They are the user's code now: edit them freely.

## Pick a piece

### Essential

The everyday parts of an interface. Buttons, tabs, lists, toasts and accordions, each with a bit of weight.

| Piece | Use it for | Install |
| --- | --- | --- |
| Press | Buttons, primary actions | `npx shadcn@latest add https://moveui-red.vercel.app/r/press.json` |
| Liquid tabs | Tabs, segmented controls | `npx shadcn@latest add https://moveui-red.vercel.app/r/liquid-tabs.json` |
| Spring trail | Lists, menus, sidebars | `npx shadcn@latest add https://moveui-red.vercel.app/r/spring-trail.json` |
| Whistle toast | Toasts, notifications | `npx shadcn@latest add https://moveui-red.vercel.app/r/whistle-toast.json` |
| Half-time accordion | FAQs, settings, details | `npx shadcn@latest add https://moveui-red.vercel.app/r/half-time-accordion.json` |
| Swing | Send buttons | `npx shadcn@latest add https://moveui-red.vercel.app/r/swing.json` |

### Agents

For AI agents and long tasks. Show that work is happening, what the agent is thinking, and how each step went.

| Piece | Use it for | Install |
| --- | --- | --- |
| Dribble | Loaders, AI thinking | `npx shadcn@latest add https://moveui-red.vercel.app/r/dribble.json` |
| Play-by-play | AI reasoning, activity logs | `npx shadcn@latest add https://moveui-red.vercel.app/r/play-by-play.json` |
| Line-up | Agent tasks, uploads, jobs | `npx shadcn@latest add https://moveui-red.vercel.app/r/line-up.json` |

### Effects

The showpieces. A hero background, a cursor, a call to action and a card that floats, to give a page its mood.

| Piece | Use it for | Install |
| --- | --- | --- |
| ASCII field | Hero backgrounds | `npx shadcn@latest add https://moveui-red.vercel.app/r/ascii-field.json` |
| Rolling ball | Cursor, pointer feedback | `npx shadcn@latest add https://moveui-red.vercel.app/r/rolling-ball.json` |
| Kick-off | Calls to action, submit | `npx shadcn@latest add https://moveui-red.vercel.app/r/kick-off.json` |
| Zero-g card | Product cards, showcases | `npx shadcn@latest add https://moveui-red.vercel.app/r/zero-g-card.json` |

### Text

Type in motion. Numbers and words that roll into place, like a stadium scoreboard.

| Piece | Use it for | Install |
| --- | --- | --- |
| Scoreboard roll | Counters, prices, stats | `npx shadcn@latest add https://moveui-red.vercel.app/r/scoreboard-roll.json` |

### Surfaces

Things that open, close and move over the page. Dropdowns, popovers, tooltips, modals, drawers, banners and steps.

| Piece | Use it for | Install |
| --- | --- | --- |
| Drop | Dropdowns, selects | `npx shadcn@latest add https://moveui-red.vercel.app/r/drop.json` |
| Pop | Popovers, context menus | `npx shadcn@latest add https://moveui-red.vercel.app/r/pop.json` |
| Whistle | Tooltips | `npx shadcn@latest add https://moveui-red.vercel.app/r/whistle.json` |
| Header | Modals, confirms | `npx shadcn@latest add https://moveui-red.vercel.app/r/header.json` |
| Sideline | Drawers, side sheets | `npx shadcn@latest add https://moveui-red.vercel.app/r/sideline.json` |
| Huddle | Menus, command palettes | `npx shadcn@latest add https://moveui-red.vercel.app/r/huddle.json` |
| Serve | Banners, announcements | `npx shadcn@latest add https://moveui-red.vercel.app/r/serve.json` |
| Slam dunk | Important notifications | `npx shadcn@latest add https://moveui-red.vercel.app/r/slam-dunk.json` |
| Relay | Steps, page changes | `npx shadcn@latest add https://moveui-red.vercel.app/r/relay.json` |
| Strike | Bulk delete, clear all | `npx shadcn@latest add https://moveui-red.vercel.app/r/strike.json` |
| Dive | Content that expands | `npx shadcn@latest add https://moveui-red.vercel.app/r/dive.json` |
| Spike | Move to another list | `npx shadcn@latest add https://moveui-red.vercel.app/r/spike.json` |

## Motion rules

Follow these when you use a piece, and when you write new motion next to one.

- **Never hardcode a duration, easing or colour.** Use the `--ml-*` tokens. To change the feel, change the token.
- **Closing is faster than opening.** Exits use `--ml-dur-exit` and no bounce.
- **Reduced motion keeps the meaning.** Under `prefers-reduced-motion` the tokens shorten and every piece falls back to a fade, a swap or a still state. Don't remove those fallbacks.
- **No layout shift.** Animate transform and opacity (or grid rows for height). Never animate width, height, top or left.
- **Keyboard first.** Keep the real buttons, `aria-expanded`, focus handling and live regions the pieces ship with.
- **Loaders wait.** Loaders stay hidden for `--ml-wait`, so quick work never flashes one.
- **Tooltips wait before showing** (`--ml-delay-hint`), never before hiding.

Durations:
- `--ml-dur-tap`: 120ms
- `--ml-dur-quick`: 200ms
- `--ml-dur-base`: 320ms
- `--ml-dur-travel`: 560ms
- `--ml-dur-flight`: 760ms
- `--ml-dur-exit`: calc(var(--ml-dur-base) * 0.6)
- `--ml-delay-hint`: 300ms
- `--ml-stagger`: 30ms
- `--ml-beat`: 500ms
- `--ml-wait`: 400ms
- `--ml-dur-spin`: 900ms

Easing:
- `--ml-ease-out`: cubic-bezier(0.22, 1, 0.36, 1)
- `--ml-ease-kick`: cubic-bezier(0.2, 0.9, 0.3, 1)
- `--ml-ease-settle`: linear(0, 0.064, 0.211, 0.391, 0.569, 0.726, 0.851, 0.943, 1.004, 1.04, 1.057, 1.06, 1.055, 1.045, 1.035, 1.024, 1.015, 1.008, 1.003, 0.999, 0.997, 0.997, 0.996, 0.997, 0.997, 0.998, 0.999, 0.999, 1)

## Check motion

When the user asks you to check, review or audit their animations, go through every transition and animation you can find (CSS, inline styles, animation libraries) and test each one against the motion rules above:

1. Hardcoded durations, easings or colours: replace them with the closest `--ml-*` token.
2. Exits as slow as entrances, or exits that bounce: move them to `--ml-dur-exit` with `--ml-ease-out`.
3. Width, height, top, left or margin animated: switch to transform and opacity, or grid rows for height.
4. No `prefers-reduced-motion` fallback: add one that keeps the meaning (a fade, a swap or a still state).
5. Hover-only or pointer-only motion: make sure the same thing works with keyboard and touch.
6. A custom component that a Move UI piece already covers: suggest the piece.

Report each finding as one line (what, where, the fix), fix the ones the user agrees to, and never remove a reduced-motion fallback.

## How to use each piece

### Press

Buttons, primary actions. Sinks under your foot, springs back off it. Spec: down 120ms, release 560ms spring, reduced: colour only.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/press.json`

```tsx
import { Press } from "@/components/moveui/press/press";

export function Save() {
  return <Press onClick={() => save()}>Save</Press>;
}
```

Docs and live preview: https://moveui-red.vercel.app/pieces/press

### Liquid tabs

Tabs, segmented controls. Stretches into the next lane, then pulls its tail in. Spec: two edge springs, lead 520 / tail 150, reduced: jumps.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/liquid-tabs.json`

```tsx
import { LiquidTabs } from "@/components/moveui/liquid-tabs/liquid-tabs";

<LiquidTabs
  aria-label="Match view"
  tabs={[
    { id: "live", label: "Live" },
    { id: "stats", label: "Stats" },
    { id: "table", label: "Table" },
  ]}
  defaultValue="live"
  onValueChange={(id) => setView(id)}
/>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/liquid-tabs

### Spring trail

Lists, menus, sidebars. The leader takes the line, the pack chases and closes up. Spec: lead spring 380 / 26, 3 ghosts chase it, reduced: one highlight.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/spring-trail.json`

```tsx
import { SpringTrail } from "@/components/moveui/spring-trail/spring-trail";

<SpringTrail rows="a">
  <a href="/inbox">Inbox</a>
  <a href="/drafts">Drafts</a>
  <a href="/sent">Sent</a>
</SpringTrail>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/spring-trail

### Whistle toast

Toasts, notifications. Drops in and lands with a small squash. Spec: drops and lands 560ms, out 192ms, reduced: fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/whistle-toast.json`

```tsx
import { useWhistle, WhistleToasts } from "@/components/moveui/whistle-toast/whistle-toast";

export function Page() {
  const whistle = useWhistle();
  return (
    <>
      <WhistleToasts {...whistle} />
      <button onClick={() => whistle.push("Saved", "Your changes are live.")}>Save</button>
    </>
  );
}
```

Docs and live preview: https://moveui-red.vercel.app/pieces/whistle-toast

### Half-time accordion

FAQs, settings, details. Opens with a small settle, closes at once. Spec: grid rows, settle 320ms, close 192ms, reduced: instant.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/half-time-accordion.json`

```tsx
import { HalfTimeAccordion } from "@/components/moveui/half-time-accordion/half-time-accordion";

<HalfTimeAccordion
  defaultOpen={[0]}
  items={[
    { title: "Shipping", body: "Free on orders over 50 €." },
    { title: "Returns", body: "30 days, no questions asked." },
  ]}
/>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/half-time-accordion

### Swing

Send buttons. Pulls back a little, follows through. Spec: backswing 170ms, follow-through 760ms, reduced: press.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/swing.json`

```tsx
import "@/components/moveui/swing/swing.css";

<button
  className="ml-swing"
  onClick={(e) => { e.currentTarget.setAttribute("data-swing", ""); send(); }}
  onAnimationEnd={(e) => { if (e.target === e.currentTarget) e.currentTarget.removeAttribute("data-swing"); }}
>
  Send <span className="ml-swing__icon" aria-hidden="true">➤</span>
</button>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/swing

### Dribble

Loaders, AI thinking. A ball kept bouncing on the beat. Spec: one beat 500ms, hidden for 400ms, reduced: still ball.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/dribble.json`

```tsx
import { Dribble } from "@/components/moveui/dribble/dribble";

{loading && <Dribble label="Warming up" variant="dribble" />}
```

Docs and live preview: https://moveui-red.vercel.app/pieces/dribble

### Play-by-play

AI reasoning, activity logs. Each moment drops into the commentary, then folds away. Spec: steps drop in, settle 320ms, folds when done, reduced: fades.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/play-by-play.json` (brings dribble with it)

```tsx
import { PlayByPlay } from "@/components/moveui/play-by-play/play-by-play";

<PlayByPlay
  running={busy}
  seconds={4}
  plays={[
    { at: 0, kind: "Read", text: "Opened the match report" },
    { at: 2, kind: "Search", text: "Looked up last season's table" },
  ]}
/>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/play-by-play

### Line-up

Agent tasks, uploads, jobs. A miss lunges and recovers, a goal pops. Spec: running, done, failed, a miss lunges 8px, reduced: no motion.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/line-up.json`

```tsx
import { LineUp } from "@/components/moveui/line-up/line-up";

<LineUp
  variant="cards"
  onRetry={(id) => retry(id)}
  tasks={[
    { id: "1", title: "Pull match stats", status: "done" },
    { id: "2", title: "Build the training plan", status: "running" },
    { id: "3", title: "Email the squad", status: "queued" },
  ]}
/>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/line-up

### ASCII field

Hero backgrounds. Floodlight drifting over the pitch, drawn as balls, rackets and kit. Spec: WebGL, one draw call, pointer lifts the light, reduced: still frame.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/ascii-field.json`

```tsx
import { AsciiField } from "@/components/moveui/ascii-field/ascii-field";

// The field fills its parent. Content after it needs position: relative to sit on top.
<section style={{ position: "relative", background: "var(--ml-night)" }}>
  <AsciiField glyphs="sport" />
  <h1 style={{ position: "relative" }}>Floodlights on.</h1>
</section>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/ascii-field

### Rolling ball

Cursor, pointer feedback. Rolls by the distance it travels. Spec: spring 900 / 52, rolls by distance, reduced: no roll.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/rolling-ball.json`

```tsx
import { RollingBall } from "@/components/moveui/rolling-ball/rolling-ball";

// Mount once, in your root layout. It does nothing on touch screens.
<body>
  {children}
  <RollingBall />
</body>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/rolling-ball

### Kick-off

Calls to action, submit. Curls into the top corner, the net bulges. Spec: flight 760ms on a curve, net bulge 700ms, reduced: label swap.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/kick-off.json` (brings rolling-ball with it)

```tsx
import { KickOff } from "@/components/moveui/kick-off/kick-off";

<KickOff label="Sign up" goalLabel="You're in!" onScore={() => submit()} />
```

Docs and live preview: https://moveui-red.vercel.app/pieces/kick-off

### Zero-g card

Product cards, showcases. Weightless: thrown, it floats, spins and drifts home. Spec: drag, throw, arrows nudge, stepped by time, reduced: still.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/zero-g-card.json`

```tsx
import { ZeroGCard } from "@/components/moveui/zero-g-card/zero-g-card";

<ZeroGCard label="Match ball">
  <img src="/ball.png" alt="" width={160} height={160} />
</ZeroGCard>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/zero-g-card

### Scoreboard roll

Counters, prices, stats. Digits roll in one after another, like a stadium board. Spec: 560ms settle per digit, 40ms stagger from the right, reduced: swap.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/scoreboard-roll.json`

```tsx
import { ScoreboardRoll } from "@/components/moveui/scoreboard-roll/scoreboard-roll";

<ScoreboardRoll value={attendance} />
```

Docs and live preview: https://moveui-red.vercel.app/pieces/scoreboard-roll

### Drop

Dropdowns, selects. The drop ball: falls from the trigger and settles. Spec: in 320ms settle, out 192ms, dropdowns, selects.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/drop.json`

```tsx
import "@/components/moveui/surfaces/drop.css";

// A native popover. Place it under its trigger with your own positioning.
<button popoverTarget="formation">Formation</button>
<div id="formation" popover="auto" className="ml-drop">
  <button>4-4-2</button>
  <button>4-3-3</button>
</div>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/drop

### Pop

Popovers, context menus. The pop-up: grows out of the trigger with a little weight. Spec: scale from trigger, in 320ms / out 192ms, popovers.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/pop.json`

```tsx
import "@/components/moveui/surfaces/pop.css";

// --ml-origin: the corner nearest the trigger.
<button popoverTarget="share">Share</button>
<div id="share" popover="auto" className="ml-pop" style={{ "--ml-origin": "top left" } as React.CSSProperties}>
  Copy link
</div>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/pop

### Whistle

Tooltips. The referee's whistle: a quick lift, no bounce. Spec: waits 300ms, lifts 200ms, hides at once, tooltips.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/whistle.json`

```tsx
import "@/components/moveui/surfaces/whistle.css";

// Shows on hover and keyboard focus. Position the tooltip with your own CSS.
<span className="ml-whistle-host">
  <button aria-describedby="tip-save">Save</button>
  <span id="tip-save" role="tooltip" className="ml-whistle">Saves a draft</span>
</span>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/whistle

### Header

Modals, confirms. Rises to meet it and lands. Spec: rises 560ms settle, backdrop dims, modals, confirms.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/header.json`

```tsx
import "@/components/moveui/surfaces/header.css";

const ref = useRef<HTMLDialogElement>(null);

<button onClick={() => ref.current?.showModal()}>Delete team</button>
<dialog ref={ref} className="ml-header">
  <p>Delete North FC?</p>
  <button onClick={() => ref.current?.close()}>Cancel</button>
</dialog>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/header

### Sideline

Drawers, side sheets. Runs in from the touchline, a step past its mark. Spec: slides 560ms, overshoots, out 192ms, drawers, sheets.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/sideline.json`

```tsx
import "@/components/moveui/surfaces/sideline.css";

const ref = useRef<HTMLDialogElement>(null);

<button onClick={() => ref.current?.showModal()}>Filters</button>
<dialog ref={ref} className="ml-sideline">
  <button onClick={() => ref.current?.close()}>Close</button>
</dialog>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/sideline

### Huddle

Menus, command palettes. The team gathers, then takes positions one by one. Spec: items 30ms apart, leave together, menus, palettes.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/huddle.json`

```tsx
import "@/components/moveui/surfaces/huddle.css";

// Each item gets its index as --i, so they come in one after another.
<button popoverTarget="menu">Menu</button>
<div id="menu" popover="auto" className="ml-huddle">
  {["Profile", "Squad", "Sign out"].map((item, i) => (
    <button key={item} style={{ "--i": i } as React.CSSProperties}>{item}</button>
  ))}
</div>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/huddle

### Serve

Banners, announcements. Rises, hangs at the top for a beat, comes down hard. Spec: toss, hang, hit 760ms, out 192ms, reduced: fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/serve.json`

```tsx
import "@/components/moveui/serve/serve.css";

{news && (
  <div key={news.id} className="ml-serve" data-open="" role="status">
    {news.text}
  </div>
)}
```

Docs and live preview: https://moveui-red.vercel.app/pieces/serve

### Slam dunk

Important notifications. Comes down from above, hits, the rim shakes. Spec: falls, hits, wobbles 560ms, rim shakes at impact, reduced: fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/slam-dunk.json`

```tsx
import "@/components/moveui/slam-dunk/slam-dunk.css";

// The alert falls in. Set data-hit on the rim (a bell, an inbox) about 38% into the fall.
<span key={hits} className="ml-dunk-rim" data-hit={hits ? "" : undefined}>🔔</span>
<ol aria-live="assertive">
  {alerts.map((a) => (
    <li key={a.id} className="ml-dunk" data-open="">{a.text}</li>
  ))}
</ol>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/slam-dunk

### Relay

Steps, page changes. One step hands the baton to the next. Spec: handover at 35%, leans, settles 560ms, reduced: cross-fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/relay.json`

```tsx
import { Relay, RelayBaton } from "@/components/moveui/relay/relay";

<RelayBaton step={step} count={3} />
<Relay step={step}>
  <TeamStep />
  <KitStep />
  <ConfirmStep />
</Relay>
<button onClick={() => setStep(step + 1)}>Next</button>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/relay

### Strike

Bulk delete, clear all. Comes in fast and the items scatter. Spec: ball rolls 320ms, pins scatter 560ms, reduced: fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/strike.json`

```tsx
import "@/components/moveui/strike/strike.css";

// Set data-struck to bowl. Remove the rows when the last pin's animation ends.
<div className="ml-strike" data-struck={cleared ? "" : undefined} style={{ "--n": items.length } as React.CSSProperties}>
  <span className="ml-strike-ball" aria-hidden="true" />
  {items.map((item, i) => (
    <div key={item.id} className="ml-strike-pin" style={{ "--i": i } as React.CSSProperties}>{item.text}</div>
  ))}
</div>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/strike

### Dive

Content that expands. Goes in head first and comes up. Spec: sinks past, comes up 560ms, 60ms apart, reduced: fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/dive.json`

```tsx
import "@/components/moveui/dive/dive.css";

<div className="ml-dive" data-open={open ? "" : undefined}>
  <div className="ml-dive__pool">
    {rows.map((row, i) => (
      <p key={row} style={{ "--i": i } as React.CSSProperties}>{row}</p>
    ))}
  </div>
</div>
```

Docs and live preview: https://moveui-red.vercel.app/pieces/dive

### Spike

Move to another list. Jumps and hits it down on the diagonal. Spec: jump, hit 760ms, squash on landing, reduced: fade.
Install: `npx shadcn@latest add https://moveui-red.vercel.app/r/spike.json`

```tsx
import { spike } from "@/components/moveui/spike/spike";

// 1. Before the move, keep where the item was.
const from = el.getBoundingClientRect();
// 2. Move it to the other list (re-render).
// 3. In a layout effect, on the item in its new place:
spike(newEl, from);
```

Docs and live preview: https://moveui-red.vercel.app/pieces/spike
