Component

Slider

Selects a numeric value or range along a track.

Install

Run the CLI to copy the source into your project.

pnpm dlx @stalk-ui/cli add @stalk-ui/slider

Examples

Live previews render through the docs app's PandaCSS codegen.

Theme
<Slider aria-label="Volume" defaultValue={[40]} />
Theme
<Slider aria-label="Price range" defaultValue={[20, 80]} />
Theme
<Slider aria-label="Locked" defaultValue={[60]} disabled />

Props

Public component props extracted from the source TypeScript types.

No component-specific props are documented yet — the component accepts the underlying element's standard props.

Variants

Variant axes exposed by the underlying PandaCSS recipe or slot recipe.

No recipe variants are documented for this component.

Registry

Files this component contributes to your registry install.

  • Manifest: `/r/slider.json`
  • Recipe: `slider`
  • Files: `src/components/ui/slider.tsx`