Miss. Train. Move.

Sideline

Drawers, side sheets. Runs in from the touchline, a step past its mark.

Bench

  • 12 Keeper
  • 14 Winger
  • 16 Defender
  • 18 Striker
  • 20 Midfield
Sport
Football
Move
Runs in from the touchline, a step past its mark.
For
Drawers, side sheets

slides 560ms, overshoots · out 192ms · drawers, sheets

01 Install

Terminal
npx shadcn@latest add https://moveui-red.vercel.app/r/sideline.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/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>

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 "Sideline" piece to this project. It's for: Drawers, side sheets.

1. Install it: npx shadcn@latest add https://moveui-red.vercel.app/r/sideline.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/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>

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/sideline

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/sideline.css
/*
  Sideline: the sheet slides in from the edge and runs a touch past its mark before settling.
  For drawers and side sheets. Use on a native <dialog> opened with showModal().
  Enter: --ml-dur-travel with --ml-ease-settle. Exit: --ml-dur-exit, straight out.
  The sheet bleeds past the screen edge (--_bleed) so the overshoot never shows a gap.
  Reduced motion: opacity only.
*/
.ml-sideline {
  --_bleed: 40px;
  --_from: translateX(100%);
  transform: var(--_from);
  transition:
    transform var(--ml-dur-exit) var(--ml-ease-out),
    opacity var(--ml-dur-exit) var(--ml-ease-out),
    overlay var(--ml-dur-exit) allow-discrete,
    display var(--ml-dur-exit) allow-discrete;
}
/* Layout: pinned to the right edge, full height. dialog.* so a CSS reset or your own dialog styles can't undo it. */
dialog.ml-sideline {
  margin: 0 calc(var(--_bleed) * -1) 0 auto;
  padding-right: var(--_bleed);
  height: 100dvh;
  max-height: none;
}
.ml-sideline[open] {
  transform: none;
  transition:
    transform var(--ml-dur-travel) var(--ml-ease-settle),
    opacity var(--ml-dur-quick) var(--ml-ease-out),
    overlay var(--ml-dur-travel) allow-discrete,
    display var(--ml-dur-travel) allow-discrete;
}
@starting-style {
  .ml-sideline[open] { transform: var(--_from); }
}
.ml-sideline::backdrop {
  background: oklch(0.2 0 0 / 0);
  transition:
    background-color var(--ml-dur-exit) var(--ml-ease-out),
    overlay var(--ml-dur-exit) allow-discrete,
    display var(--ml-dur-exit) allow-discrete;
}
.ml-sideline[open]::backdrop {
  background: oklch(0.2 0 0 / 0.3);
  transition-duration: var(--ml-dur-base);
}
@starting-style {
  .ml-sideline[open]::backdrop { background: oklch(0.2 0 0 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ml-sideline { --_from: none; opacity: 0; }
  .ml-sideline[open] { opacity: 1; }
  @starting-style { .ml-sideline[open] { opacity: 0; } }
}