alexander-rukin

Range Slider

Forms

About

A draggable track-and-knob slider for picking a single value or a min/max range, with full keyboard and touch support.

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

Code

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

Usage.tsx

"use client";

import Slider from "@/components/ui/slider";

export default function UncontrolledDisabledSliderDemo() {
  return (
    <div className="w-full max-w-sm mx-auto p-6 flex flex-col gap-5">
      <Slider defaultValue={65} showValue />
      <Slider defaultValue={30} disabled showValue />
    </div>
  );
}

More by alexander-rukin

View all
  • Carousel

    Carousel

    1
  • Combobox

    Combobox

  • Textarea

    Textarea

  • Tooltip

    Tooltip

  • Card

    Card

  • Input

    Input

  • Date Picker

    Date Picker

More in Forms

View all
  • Premium Auth

    Premium Auth

    551
  • Contact Card

    Contact Card

    1.1K
  • Login 2

    Login 2

    10
  • Form

    Form

    17
  • Form

    Form

    20
  • Book A Demo 3

    Book A Demo 3

    96
  • Login 1

    Login 1

    59
  • SignInPage

    SignInPage

    721