lumesec

Rotary Dial

Component 1

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

    56
  • Date Picker

    Date Picker

    7
  • Pixel Toaster

    Pixel Toaster

    6
  • Command Palette

    Command Palette

    4
  • Pixel Accordion

    Pixel Accordion

    1
  • Pixel Select

    Pixel Select

  • Pixel Tabs

    Pixel Tabs

  • Choropleth Map

    Choropleth Map