Weekdays

Repeat on
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-weekdays

About 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

More checkboxes

See all
GuardGet code
ParryGet code
CapsuleGet code
ClearGet code