Slider

Range slider on Base UI with a filled track and pill-shaped thumbs. Renders one thumb per array value, two when no array is given, in horizontal or vertical orientation.

Open the preview in a new tab
"use client"

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

/** Slider with one thumb. */
export default function SliderDemo() {
  return <Slider defaultValue={48} className="w-full max-w-sm" />
}

Installation

pnpm dlx shadcn add @01orbital/slider
npx shadcn add @01orbital/slider
yarn shadcn add @01orbital/slider
bunx --bun shadcn add @01orbital/slider

Add the @01orbital registry to components.json once (install guide), then run the command.

It lands at components/ui/slider.tsx, as source you own and edit.

Slider components

The library's own slider components, each installed on its own.

01

cloud-dancer-slider

Component 01 · cloud-dancer-slider

Cloud Dancer Slider

Base UI slider dressed as the Cloud Dancer pill: a teal-shaded off-white strip with a dark filled range and a dark orb thumb. Takes one value or a range, with a label per thumb. Open its docs page

pnpm dlx shadcn add @01orbital/cloud-dancer-slider
npx shadcn add @01orbital/cloud-dancer-slider
yarn shadcn add @01orbital/cloud-dancer-slider
bunx --bun shadcn add @01orbital/cloud-dancer-slider

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Dependencies

npm: @base-ui/react, cn. The CLI installs them for you.

No other registry pieces.