Loading preview
Light Switch Panel
InputsA wall plate of rocker switches that light a row of pendant bulbs.
A café dial for choosing a drink, with a cup that shows what goes into it.
npx shadcn@latest add @venusui/coffee-order-dialRun 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/coffee-order-dial.tsxAlso adds the shadcn button component if your project doesn't have it yet.
The code behind the preview above.
coffee-order-dial-demo.tsx
import { CoffeeOrderDial } from "@/components/ui/coffee-order-dial"
export default function CoffeeOrderDialDemo() {
return <CoffeeOrderDial />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| drinks | CoffeeDrink[] | — | Drinks, each with a price and cup layers. |
| sizes | CoffeeSize[] | — | Sizes, with extra cost and cup fill. |
| currency | string | "USD" | Currency code. |
| locale | string | "en-US" | Locale for prices. |
| onOrder | (order: CoffeeOrder) => void | — | Called by Add to order. |
All <div> props.
lucide-react for icons. shadcn button. The CLI installs it. React 19 and Tailwind CSS v4.layers set the colours and proportions in the cup.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 wall plate of rocker switches that light a row of pendant bulbs.
A graphic equalizer panel with faders, LED columns, a response curve and presets.
A star rating built on native radio buttons, with a read-only display mode.