Bauhaus
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/radio-bauhausAbout this component
A radio list on cream card, ruled in black, with a circle marker on each row. A block of red, blue or yellow slides in behind the row you pick, its circle turns solid and a small black shape spins at the end.
Triggers
- Click
- State change
- Fill
- Loop
Techniques
- Transform only
- CSS variables
- CSS transition
- Keyframes
Difficulty
Beginner
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Output"), each inside a <label> and named by its visible text; the block, marker and shape are aria-hidden. The focused row is outlined.
Reduced motion
The block appears at once and the shape stays still.
Use it in anything you build, commercial and client work included. Licence