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

const currency = new Intl.NumberFormat("en-US", {
  style: "currency",
  currency: "USD",
  maximumFractionDigits: 0,
});

export default function RangeSliderDemo() {
  return (
    <div className="flex w-full max-w-md flex-col gap-10">
      <RangeSlider
        label="Price range"
        defaultValue={[200, 800]}
        minValue={0}
        maxValue={1000}
        step={50}
        formatValue={(value) => currency.format(value)}
      />
    </div>
  );
}

Dependencies

More by boardui

View all
  • Social Button

    Social Button

    4
  • Modal Dialog

    Modal Dialog

    3
  • Composer Loader

    Composer Loader

    3
  • Select

    Select

    1
  • Accordion

    Accordion

    1
  • Segmented Control

    Segmented Control

  • Date Calendar

    Date Calendar

  • File Upload

    File Upload

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19