nikolas-sapa

Vernier Caliper Slider

Component 1

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

    142
  • Countdown Vapor Digits

    Countdown Vapor Digits

    139
  • Hero Burin Hatch

    Hero Burin Hatch

    63
  • Background ASCII Wake

    Background ASCII Wake

    62
  • Hero Text Ring Funnel

    Hero Text Ring Funnel

    50
  • Hero ASCII Schlieren

    Hero ASCII Schlieren

    49
  • Toast Gravity Stack

    Toast Gravity Stack

    48
  • Hero ASCII Reaction Front

    Hero ASCII Reaction Front

    45