Haus

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-haus

About this component

A Bauhaus slider in five steps: a thin rule that thickens into a black bar up to the thumb, a red disc with a yellow quarter that turns a notch at every step, and small squares below that fill blue as you pass them.

Triggers

  • State change
  • Click
  • Fill

Techniques

  • CSS variables
  • Conic gradient
  • CSS transition

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native range input named "Scale" by aria-label, so arrow keys, Home and End work; everything drawn is aria-hidden. :focus-visible on the input outlines the thumb.

Reduced motion

The transitions and ambient animation are switched off and the thumb simply follows the value.

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

More sliders

See all
HoloGet code
IsoGet code
LagGet code
LoudGet code