Chalk
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-chalkAbout this component
A green slate tablet with a rough chalk outline and chalk lettering. Hover draws a yellow chalk underline under the label by hand; a press smudges the chalk.
Triggers
- Hover
- Click
- Draw
Techniques
- SVG filter
- stroke-dashoffset
- SVG stroke
- Keyframes
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native button named by its label; the drawn lines and the filter are aria-hidden and :focus-visible draws an outline.
Reduced motion
The jitter stops and the underline appears at once.
Use it in anything you build, commercial and client work included. Licence