Tag Label

Username
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-tag-label

About this component

On focus the label slides upward and a light pill badge background expands behind it via scaleX. The label transforms from a plain hint into a bold field identifier tag.

Triggers

  • Focus
  • State change
  • Border

Techniques

  • Transform only
  • clip-path

Difficulty

Intermediate

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Reduced motion

Label position change happens without transition under prefers-reduced-motion.

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

More inputs

See all
✓
ValidateGet code
WobbleGet code