5 of 10 · Enter varnishes it
Enamel pin
5 of 8 · hard enamel, gold plate
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldEnamelPin(el) on the mounted element instead.
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/input-enamel-pinAbout this component
A word cast as a hard-enamel pin: each letter is struck in raised metal lines, the enamel pours in to fill it and the gloss sweeps over, while the pin tilts with your pointer on its backing card.
- Dependencies
- None
- Difficulty
- Advanced
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- State change
- Mouse tracking
- 3D
Techniques4
- Mouse tracking
- CSS variables
- clip-path
- Pseudo elements
Accessibility
Keyboard and screen readers
One native input named "Word on the pin"; the pin is aria-hidden and the count, or the reason for a refusal, is announced.
Reduced motion
The enamel is shown filled and the pin does not tilt.
Use it in anything you build, commercial and client work included. Licence
More inputs
See all5 of 12 · 175 stitches
5 of 10 · Enter pulls the squeegee
5 of 18 · no undo: Backspace shakes it clean