Velvet

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-velvet

About this component

A gift message field on a plum velvet pad set in a polished brass tray, the words pressed into the pile in a pale sheen. Focus shifts the sheen across the nap and runs a glint along the brass.

Triggers

  • Focus
  • State change

Techniques

  • @property
  • Radial gradient
  • SVG filter
  • Keyframes

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native text input named by aria-label ("Gift message"); the tray, pad and marker are aria-hidden. Focus draws a plum ring round the tray.

Reduced motion

The sheen, glint and blink hold still.

Use it in anything you build, commercial and client work included. Licence

More inputs

See all
VFDGet code
ASCIIGet code
BauhausGet code
BitmapGet code