Washi

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-washi

About this component

A two-thumb range slider on grid paper: the chosen range is a strip of dotted pink washi tape, see-through and torn by hand at both ends. Each end has a round paper sticker to drag.

Triggers

  • State change
  • Fill
  • Click

Techniques

  • CSS variables
  • clip-path
  • Radial gradient
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Two native range inputs named "From" and "To" by aria-label, each working with arrow keys, Home and End; the tape and stickers are aria-hidden. :focus-visible rings the sticker of the focused input.

Reduced motion

The stickers no longer spring.

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

More sliders

See all
WobbleGet code
BitmapGet code
BorealisGet code
BrutGet code