App UI kits › Touchline › Lineup builder

Lineup builder

Drag players onto the pitch; switch formation and everyone springs to her new slot while the formation lines redraw.

Lineup builder is a screen from Touchline, an app ui kit with 11 screens: A grassroots football team app: drag the lineup onto a pitch, log the match from the touchline and the recap builds itself. Price: $5 for the whole pack.

Built with: drag onto pitch, spring formations, live formation lines.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Lineup builder props

PropTypeDefaultDescription
darkbooleanLight by default; true gives the dark theme.
autoplayboolean
photosTlPhotos
formation'4-4-2' | '4-3-3' | '3-5-2''4-4-2'Starting formation. Default '4-4-2'.
onChange(r: { formation: string; xi: string[] }) => void

Methods on the ref

Use it in React

import TouchlineLineup from './TouchlineLineup';

<TouchlineLineup />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Touchline

Good for: Sports team app UI, UK (pounds).