Fold

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-fold

About this component

A note field on a sheet of sky-blue paper with one corner dog-eared and a paper plane parked at the end. Focus flattens the fold and lifts the sheet, and the plane leans forward once there is something to send.

Triggers

  • Focus
  • State change
  • Icon

Techniques

  • clip-path
  • CSS transition
  • Filter
  • Keyframes

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native text input inside a <label>, named by aria-label ("Note"); the fold, plane 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
JellyGet code
LCDGet code
MarkerGet code
MemoGet code