Notify
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/toggle-notifyAbout this component
A wide glass switch with its label inside: off it is clear glass with the bead on the left; switching on floods the glass blue, sets a glow behind it and slides the bead right as the word Notifications moves over and turns white.
Triggers
- Click
- State change
- Glow
Techniques
- CSS transition
- Radial gradient
- CSS variables
Difficulty
Beginner
Accessibility
Keyboard and screen readers
A native checkbox with role="switch" inside a <label>, named by its visible label (Notifications); :focus-visible outlines the glass.
Reduced motion
The transitions and loops stop and the component jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence