Component packs › Fader › Dimmer

Dimmer

Slide it up and the filament warms from dull red to warm white, the wall lights up around the bulb and the slider shadow sharpens; it clicks off at the bottom.

Dimmer is a vertical slider from Fader, a component pack with 8 sliders: Eight sliders, each a real mechanism: a console fader, a radio dial, beads on a wire, a zipline. Price: $2 for the whole pack.

Built with: filament colour temperature, lit wall, off detent.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Dimmer props

PropTypeDefaultDescription
valuenumber62Brightness 0–100. Default 62.
labelstring
disabledboolean
darkboolean
onChange(value: number) => void
autoplaynumber | falseShowcase mode: dims to a new level every N ms while visible.

Methods on the ref

Use it in React

import Dimmer from './Dimmer';

<Dimmer />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Fader

Good for: Sliders.