Loading preview
Coffee Order Dial
InputsA café dial for choosing a drink, with a cup that shows what goes into it.
A graphic equalizer panel with faders, LED columns, a response curve and presets.
npx shadcn@latest add @venusui/music-equalizerRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/music-equalizer.tsxThe code behind the preview above.
music-equalizer-demo.tsx
import { MusicEqualizer } from "@/components/ui/music-equalizer"
export default function MusicEqualizerDemo() {
return <MusicEqualizer defaultValue={[6, 4, -2, -3, 0, 3, 5, 6]} />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| bands | string[] | — | Band labels, low to high. |
| value | number[] | — | Controlled gains in decibels. |
| defaultValue | number[] | — | Initial gains. |
| presets | { name: string; gains: number[] }[] | — | Preset buttons. |
| range | number | 12 | Largest boost or cut in decibels. |
| onValueChange | (gains: number[]) => void | — | Called when a gain changes. |
All <div> props.
onValueChange to Web Audio BiquadFilterNode gains to shape real audio.Unknown registry "@venusui"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 foundnpx shadcn@latest init in your project first.A café dial for choosing a drink, with a cup that shows what goes into it.
A wall plate of rocker switches that light a row of pendant bulbs.
A star rating built on native radio buttons, with a read-only display mode.