Skip to content
VenusUI
Get started

Radio Tuner

A valve radio's tuning dial with a needle, a signal lamp and stations that fade in.

Preview

Installation

npx shadcn@latest add @venusui/radio-tuner

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/radio-tuner.tsx

Usage

The code behind the preview above.

radio-tuner-demo.tsx

import { RadioTuner } from "@/components/ui/radio-tuner"

const stations = [
  { frequency: 89.7, name: "Night Owl", genre: "Late-night jazz" },
  { frequency: 94.2, name: "Coastline", genre: "Indie and folk" },
  { frequency: 99.5, name: "Signal", genre: "News and talk" },
  { frequency: 104.8, name: "Pulse", genre: "Electronic" },
]

export default function RadioTunerDemo() {
  return <RadioTuner stations={stations} />
}

API reference

PropTypeDefaultDescription
stations{ frequency: number; name: string; genre?: string }[]—Stations on the band.
min, maxnumber88, 108Band in MHz.
defaultFrequencynumber92.4Starting frequency.
onTune(frequency, station) => void—Called on change.

All <div> props.

Requirements

  • React 19 and Tailwind CSS v4.

Customization

  • Use it to pick a playlist, a category or an episode.

Accessibility

  • The knob is a slider (arrows move 0.1 MHz); the station is announced.

Troubleshooting

Something looks different from the preview.
Components use your project’s theme tokens, so surrounding colours and radius follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

A café dial for choosing a drink, with a cup that shows what goes into it.

Loading preview

A wall plate of rocker switches that light a row of pendant bulbs.

Loading preview

A graphic equalizer panel with faders, LED columns, a response curve and presets.