nikolas-sapa

Vernier Caliper Slider

Component

About

A numeric slider input styled as a working vernier caliper, where a fine tick row lines up against a fixed coarse scale to reveal precise decimal values, for entering exact numbers like weights or measurements.

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

Code

How Vernier Caliper Slider is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { VernierSlip } from "@/components/ui/slider-vernier";

export default function VernierSliderDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-6">
      <VernierSlip
        label="Weight"
        unit="g"
        min={0}
        max={20}
        step={0.1}
        defaultValue={4.2}
      />
    </div>
  );
}

More by nikolas-sapa

View all
  • Dye Whorl

    Dye Whorl

    138
  • Countdown Vapor Digits

    Countdown Vapor Digits

    122
  • Hero Burin Hatch

    Hero Burin Hatch

    62
  • Background ASCII Wake

    Background ASCII Wake

    55
  • Hero Text Ring Funnel

    Hero Text Ring Funnel

    48
  • Toast Gravity Stack

    Toast Gravity Stack

    46
  • Hero ASCII Schlieren

    Hero ASCII Schlieren

    45
  • Hero ASCII Reaction Front

    Hero ASCII Reaction Front

    41