Halo

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-halo-field

About this component

A glass name field: when you click into it, a band of coloured light runs once round the rim and settles into a soft violet glow, and the label floats up out of the way.

Triggers

  • Focus
  • Glow
  • Border

Techniques

  • Conic gradient
  • Keyframes
  • @property

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native text input wrapped in its <label>, whose text floats up on focus; the light is aria-hidden.

Reduced motion

The transitions and loops stop and the component jumps straight to its final state.

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

More inputs

See all
PromptGet code
SearchGet code
SuggestGet code
  • Motion
  • Glass
TagsGet code