Slider

A versatile slider component with a variety of styles and advanced behaviours.

Slider API Reference
Styles inspired by Origin UI

Playground

Customize the Slider properties to see different variations.

Customize

Installation

pnpm dlx shadcn@latest add https://shadcn-ui-variants.vercel.app/r/slider.json

Examples

With labels and tooltip

With ticks and input

Controlled with output and interactive icons

50

Slider Props

PropTypeDefault
variant
enum"default"
showTooltip
booleanfalse
withOutput
booleanfalse
withInput
booleanfalse
startLabel
React.ReactNode
endLabel
React.ReactNode
startIcon
React.ReactNode
endIcon
React.ReactNode
showTicks
booleanfalse
numberOfTicks
number11