Long shadow

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-longshadow

About this component

A headline field in flat design: white letters on a coral tile cast long flat shadows away from a light that sits just above the caret. Every key you type swings the shadows round.

Triggers

  • Focus
  • State change

Techniques

  • @property
  • CSS variables
  • CSS transition

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native text input named by aria-label ("Headline"); the badge, both mirrored lines and the caret are aria-hidden. Focus draws a dark coral ring.

Reduced motion

The shadows move without easing and the caret stays solid.

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

More inputs

See all
LuggageGet code
MagnetsGet code
MalachiteGet code
PapercutGet code