Component packs › Fader › Radio Tuner
The needle trails the dial cord and settles; near a station the signal meter swings up, the stereo lamp lights, and letting go pulls it onto the station.
Radio Tuner is a 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: dial-cord lag, magnetic fine tuning, turnable knob.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 94.7 | Frequency in MHz, 87.5 to 108. Default 94.7. |
stations | RadioStation[] | ||
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (mhz: number, station: RadioStation | null) => void | Called with the frequency and the station it is tuned to (or null). | |
autoplay | number | false | Showcase mode: seeks to the next station every N ms while visible. |
readonly value: numbersetValue(mhz: number, silent?: boolean): voidseek(dir: 1 | -1): voiddestroy(): voidimport RadioTuner from './RadioTuner';
<RadioTuner />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Sliders.