Mahmoud Ilyan

Slider

Forms

About

A draggable range input for picking a numeric value (or range) between a min and max, with optional label, live value display, marks, and small/medium/large sizes.

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

Code

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

Usage.tsx

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

export default function SliderDemo() {
  return (
    <div className="w-full max-w-sm p-8 flex items-center justify-center min-h-[200px] bg-background">
      <Slider defaultValue={[50]} max={100} step={1} />
    </div>
  );
}

Dependencies

More by Mahmoud Ilyan

View all
  • Steps

    Steps

    5
  • Radio Card

    Radio Card

    1
  • Switch

    Switch

    1
  • Textarea

    Textarea

  • Tabs

    Tabs

  • Progress

    Progress

  • KPI Card

    KPI Card

  • Checkbox Card

    Checkbox Card

More in Forms

View all
  • Login 1

    Login 1

    64
  • Premium Auth

    Premium Auth

    571
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35