Weekdays
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/checkbox-weekdaysAbout this component
A repeat-on picker: seven round day buttons. A picked day fills with a warm colour that shifts along the week from amber to pink, and neighbouring picked days join up into one continuous pill.
Triggers
- Click
- State change
- Morph
- Spring
Techniques
- CSS variables
- border-radius
- CSS transition
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A <fieldset> with a visually hidden <legend> ("Repeat on"); each day is a <label> round a native checkbox named by aria-label with the full day name ("Monday" to "Sunday"). The visible letter and the background are aria-hidden, and :has(:focus-visible) outlines the day.
Reduced motion
Every transition and animation is switched off, so it jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence