Slider

Range slider for selecting numeric values within a min/max range.

Preview

Interactive examples use the same @flux/ui build as production. Toggle theme in the header for light and dark. Motion tokens and layout patterns live under Motion and Patterns in the sidebar.

Live preview

Default

Range

Disabled

Installation

Add the package to your app (full Next.js + Tailwind steps on Installation):

npm install @payglocal_ui/flux-ui

Usage

Import

import { Slider } from "@payglocal_ui/flux-ui";

Example

const [value, setValue] = useState([50]);

<Slider
  min={0}
  max={100}
  step={1}
  value={value}
  onValueChange={setValue}
  className="w-64"
/>