boardui

Slider

Forms

About

A single-value or min/max range slider with draggable thumbs, exact-value bubbles, and full keyboard control.

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 { RangeSlider, Slider } from "@/components/ui/slider";

export default function SliderDemo() {
  return (
    <div className="flex w-full max-w-md flex-col gap-10">
      <Slider label="Volume" defaultValue={42} />
      <RangeSlider
        label="Monthly budget"
        defaultValue={[25, 75]}
        formatValue={(value) => `$${value}`}
      />
    </div>
  );
}

Dependencies

More by boardui

View all
  • Social Button

    Social Button

    6
  • Modal Dialog

    Modal Dialog

    5
  • Composer Loader

    Composer Loader

    4
  • Accordion

    Accordion

    2
  • Select

    Select

    1
  • Segmented Control

    Segmented Control

  • Date Calendar

    Date Calendar

  • File Upload

    File Upload

More in Forms

View all
  • Form

    Form

    7
  • Contact Form

    Contact Form

    32
  • Login 2

    Login 2

    16
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    94
  • Paper Plane

    Paper Plane

    80
  • Premium Auth

    Premium Auth

    613
  • Authentication Card

    Authentication Card

    52