Loading preview
Coffee Order Dial
InputsA café dial for choosing a drink, with a cup that shows what goes into it.
A spirit level you tilt by dragging; the bubble drifts and the vial turns green when it's level.
npx shadcn@latest add @venusui/spirit-levelRun 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/spirit-level.tsxThe code behind the preview above.
spirit-level-demo.tsx
import { SpiritLevel } from "@/components/ui/spirit-level"
export default function SpiritLevelDemo() {
return <SpiritLevel />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultAngle | number | 4 | Starting tilt in degrees. |
| range | number | 12 | Largest tilt either way. |
| onAngleChange | (angle: number) => void | — | Called as the tilt changes. |
All <div> props.
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 graphic equalizer panel with faders, LED columns, a response curve and presets.