pearpages

Slider

Forms

About

An accessible slider for picking a single number or a min/max range on a track, with keyboard, drag and screen-reader support.

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

"use client";

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

export default function HiddenLabelSliderDemo() {
  return (
    <div className="flex min-h-[200px] w-full items-center justify-center bg-background p-8 text-foreground">
      <div className="w-full max-w-sm">
        <Slider
          label="Brightness"
          hideLabel
          description="The label is read out but not shown"
        />
      </div>
    </div>
  );
}

Dependencies

More by pearpages

View all
  • Popover

    Popover

    6
  • Switch

    Switch

  • Data Grid

    Data Grid

  • Tabs

    Tabs

  • Text Field

    Text Field

More in Forms

View all
  • Premium Auth

    Premium Auth

    592
  • Login 1

    Login 1

    70
  • Contact Card

    Contact Card

    1.1K
  • Contact Form

    Contact Form

    28
  • Form

    Form

    6
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form

    Form

    4
  • Book A Demo 4

    Book A Demo 4

    69