Dog-ear
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-dogearAbout this component
Visibility options as three sheets of paper in a list. The sheet you pick slides out a little and folds its top corner down to show a coloured underside, and its radio ring fills with the same colour.
Triggers
- Click
- State change
- Hover
- Spring
Techniques
- clip-path
- CSS variables
- CSS transition
- Filter
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Visibility"), each inside a <label> and named by its visible text; the ring and flap are aria-hidden. :focus-visible outlines the sheet.
Reduced motion
The fold appears at once.
Use it in anything you build, commercial and client work included. Licence