Mohammad Shehadeh

Number Range

Forms 1

About

Two-thumb slider paired with synced number inputs. Min/max/step, currency or unit formatting, keyboard-first.

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

Code

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

Usage.tsx

import {
  NumberRange,
  NumberRangeSlider,
  NumberRangeInputs,
} from "@/components/ui/number-range";

export default function NumberRangeDemo() {
  return (
    <div className="w-full max-w-sm space-y-4">
      <NumberRange
        defaultValue={[200, 800]}
        min={0}
        max={1000}
        step={10}
        prefix="$"
      >
        <NumberRangeSlider />
        <NumberRangeInputs />
      </NumberRange>
    </div>
  );
}

More by Mohammad Shehadeh

View all
  • Feature Problem Cards

    Feature Problem Cards

    84
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    70
  • Dithered Shader CTA

    Dithered Shader CTA

    63
  • Ecommerce Category Page

    Ecommerce Category Page

    61
  • Split Login

    Split Login

    60
  • FAQ Two Column

    FAQ Two Column

    59
  • Comparison Table

    Comparison Table

    58
  • Comparison Section

    Comparison Section

    57

More in Forms

View all
  • Premium Auth

    Premium Auth

    498
  • Login 2

    Login 2

    7
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    46
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Form

    Form

    136

Explore more

Part of Hirael — browse the full library on 21st.dev.