Skip to content
VenusUI
Get started

Coffee Order Dial

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

Preview

Installation

npx shadcn@latest add @venusui/coffee-order-dial

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/coffee-order-dial.tsx

Also adds the shadcn button component if your project doesn't have it yet.

Usage

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 />
}

API reference

PropTypeDefaultDescription
drinksCoffeeDrink[]—Drinks, each with a price and cup layers.
sizesCoffeeSize[]—Sizes, with extra cost and cup fill.
currencystring"USD"Currency code.
localestring"en-US"Locale for prices.
onOrder(order: CoffeeOrder) => void—Called by Add to order.

All <div> props.

Requirements

  • lucide-react for icons. shadcn button. The CLI installs it. React 19 and Tailwind CSS v4.

Customization

  • Each drink’s layers set the colours and proportions in the cup.

Accessibility

  • Drinks and sizes are native radio buttons, so the dial works fully from the keyboard.

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 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.

Loading preview

Rating

Inputs

A star rating built on native radio buttons, with a read-only display mode.