Brut

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/slider-brut

About this component

A neo-brutalist slider in steps of five: a white bar in a thick black outline with a hard shadow, a marching yellow striped fill, a pink block that slams onto its shadow when pressed, five fat ticks and the value in a black box.

Triggers

  • State change
  • Click
  • Loop
  • Fill

Techniques

  • CSS variables
  • Keyframes
  • Gradient
  • CSS transition

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native range input named "Volume" 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
BudgetGet code
ChalkGet code
ChimeGet code
ChromeGet code