App UI kits › Touchline › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | Light by default; true gives the dark theme. | |
autoplay | boolean | ||
photos | TlPhotos | ||
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 |
setFormation(f: '4-4-2' | '4-3-3' | '3-5-2'): voiddestroy(): voidimport TouchlineLineup from './TouchlineLineup';
<TouchlineLineup />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Sports team app UI, UK (pounds).