lumesec

Rotary Dial

Component 22

About

A draggable rotary knob control that snaps to defined steps along a 270° arc, with tick marks that flash and a rolling numeric readout, for picking a numeric value like temperature or volume.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Rotary Dial to your project and fits it to your theme.

Code

How Rotary Dial is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import UiDial from "@/components/ui/ui-dial";

export default function Example() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <UiDial
        defaultValue={0.7}
        min={0}
        max={1}
        step={0.1}
        label="Temperature"
      />
    </div>
  );
}

More by lumesec

View all
  • Geo Traceroute

    Geo Traceroute

    89
  • Effort Slider

    Effort Slider

    32
  • Date Picker

    Date Picker

    28
  • Connection Globe

    Connection Globe

    25
  • Region Picker

    Region Picker

    23
  • Pixel Toaster

    Pixel Toaster

    14
  • Pixel Select

    Pixel Select

    12
  • Live Visitors Map

    Live Visitors Map

    11