Spectrum

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-spectrum

About this component

A message field where each letter you type takes the next hue of a seven-colour cycle and pops in on a spring. The caret already carries the coming colour, the slab glows with it, and a little colour wheel clicks round one segment per key.

Triggers

  • Focus
  • Spring
  • Glow
  • State change

Techniques

  • Conic gradient
  • Keyframes
  • CSS variables
  • Text animation

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native text input named by aria-label ("Message"); the mirrored letters, wheel and caret are aria-hidden, and the input keeps its native selection. Focus draws a ring in the coming colour.

Reduced motion

Letters appear without the pop and the caret stays solid.

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

More inputs

See all
StationGet code
TeletextGet code
TitaniumGet code
VelvetGet code