Component reference

Physical Knob

A rotary control with tick marks and a value display. Drag, flick, scroll or use the arrow keys.

Level
72%
<PhysicalKnob variant="minimal" />Clean surfaces and measured motion.

Installation

Use the shadcn CLI to copy the component source and its dependencies into your own project. Only the Minimal world, with motion, plus the Ovio theme, world, motion, rolling-number, format items.

npx shadcn add JanaSundar/ovio/physical-knob-minimal
↳You own the source. Ovio components arrive in your codebase so you can edit any part of their style, behavior, or data flow.

Usage

Set the visual world on the component, or wrap the page in an OvioProvider to set a default for everything inside it.

TSXvariant="minimal"
import { PhysicalKnob } from "@/components/ovio/physical-knob/physical-knob"

<PhysicalKnob
  variant="minimal"
  onValueChange={setLevel}
/>

Built with: CSS · Motion for React (spring, drag, inertia)
Motion in Minimal: Small springs, opacity and layout shifts that show state.

Props

Control the data, selected world, animation behavior, and callbacks.

PropTypeDescription
variantdefault minimalminimalcraftretrotoyWhich world to render. Uses the nearest OvioProvider when there is one.
value / defaultValuenumberControlled value, or the starting one: 72% of the way from min to max by default.
min / maxdefault 0 / 100numberThe range of values.
onValueChange(value: number) => voidFires while turning.
labelstringAccessible name, printed on the dial.
classNamestringMerged onto the root.