Click pen
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-click-penAbout this component
A retractable pen on its side: press the plunger and the cam catches with a two-stage ratchet click as the tip comes out of the cone; press again and it retracts. The clip glints when you hover.
- Dependencies
- None
- Difficulty
- Beginner
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Click
- State change
- Hover
Techniques3
- CSS transition
- Keyframes
- clip-path
Accessibility
Keyboard and screen readers
A native button named "Write" with aria-pressed reflecting whether the tip is out.
Reduced motion
The tip and plunger switch without animating.
Use it in anything you build, commercial and client work included. Licence