Swiss

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-swiss

About this component

An email field set on a grid in heavy grotesque type, with a red square at its head and a small caps label above the line. Focus slides the red square out into a full-width rule while the label turns red.

Triggers

  • Focus
  • State change
  • Border
  • Icon

Techniques

  • CSS transition
  • Transform only
  • CSS variables

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native email input named by the visible label text ("E-mail") of the <label> that wraps it; the arrow icon 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
TapeGet code
TerrazzoGet code
VaultGet code
VitroGet code