Miss. Train. Move.

Drop

Dropdowns, selects. The drop ball: falls from the trigger and settles.

Sport
Football
Move
The drop ball: falls from the trigger and settles.
For
Dropdowns, selects

in 320ms settle · out 192ms · dropdowns, selects

01 Install

Terminal
npx shadcn@latest add https://moveui-red.vercel.app/r/drop.json

It brings the tokens with it. The first time, import the tokens once in your root layout:

app/layout.tsx
import "@/components/moveui/tokens.css";

Not using shadcn? Copy the files below into components/moveui/, and tokens.css next to them.

02 Use it

Example
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>

03 Or ask your agent

Paste this into Claude Code, Cursor or any coding agent. It installs the piece and wires it in.

Prompt
Add the Move UI "Drop" piece to this project. It's for: Dropdowns, selects.

1. Install it: npx shadcn@latest add https://moveui-red.vercel.app/r/drop.json
2. If the project doesn't import the Move UI tokens yet, add this once to the root layout: import "@/components/moveui/tokens.css";
3. Use it like this, adapted to where it belongs in my code:

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>

Keep its reduced-motion behaviour and keyboard support. Don't hardcode durations, easing or colours: they come from the --ml-* tokens.
Docs: https://moveui-red.vercel.app/pieces/drop

Want your agent to know the whole library and its motion rules? Add the Move UI skill to your project:

Terminal
npx shadcn@latest add https://moveui-red.vercel.app/r/skill.json

04 Code

components/moveui/surfaces/drop.css
/*
  Drop: the surface falls from its trigger and settles. For dropdowns, selects and menus.
  Enter: --ml-dur-base with --ml-ease-settle. Exit: --ml-dur-exit, no bounce.
  Works on a native [popover], or on any element you toggle with [data-open].
  Set --ml-origin to the side it opens from (default: top). Reduced motion: opacity only.
*/
.ml-drop {
  --_from: translateY(-8px) scaleY(0.94);
  transform-origin: var(--ml-origin, top center);
  opacity: 0;
  transform: var(--_from);
  transition:
    opacity var(--ml-dur-exit) var(--ml-ease-out),
    transform var(--ml-dur-exit) var(--ml-ease-out),
    overlay var(--ml-dur-exit) allow-discrete,
    display var(--ml-dur-exit) allow-discrete;
}
.ml-drop:popover-open,
.ml-drop[data-open] {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--ml-dur-quick) var(--ml-ease-out),
    transform var(--ml-dur-base) var(--ml-ease-settle),
    overlay var(--ml-dur-base) allow-discrete,
    display var(--ml-dur-base) allow-discrete;
}
@starting-style {
  .ml-drop:popover-open,
  .ml-drop[data-open] { opacity: 0; transform: var(--_from); }
}
@media (prefers-reduced-motion: reduce) {
  .ml-drop { --_from: none; }
}