Bauhaus

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-bauhaus

About this component

A name field on warm paper with a black block at its head holding a red circle, a yellow triangle and a blue square. Focus turns the three shapes while the rule under the text lays itself out in red, yellow and blue.

Triggers

  • Focus
  • State change
  • Border

Techniques

  • CSS transition
  • clip-path
  • Transform only

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native text input inside a <label>, named by aria-label ("Full name"); the shapes and drawn cursor are aria-hidden.

Reduced motion

Every transition and animation is switched off.

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

More inputs

See all
BitmapGet code
ChalkGet code
CheckpointGet code
ClayGet code