Measured entry

shadcn-slider

sliderunclassifiedmotion on file

A client-side React slider wrapper shipped as registry source rather than a packaged widget. It composes Radix Slider primitives, uses Tailwind utility and theme-token classes, and relies on the shadcn cn helper backed by clsx and tailwind-merge. It creates a thumb for each supplied value and supports horizontal or vertical layouts.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of shadcn-slider at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-slider at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-slider at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for shadcn-slider
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal39.2 KB (104.7 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten from the component source API

Verdict

A solid fit for shadcn-based apps and range selection, with clean Radix behavior and source-level styling control. It builds and mounts as supplied, but the demo is not accessible until each slider thumb receives an accessible name, especially for multi-thumb ranges.

Use it if

  • You want a Tailwind-styled Radix slider that can handle both single values and ranges.
  • Your app already uses shadcn conventions, theme tokens, and the cn utility.
  • You need source-level control over thumb, track, focus, and disabled-state styling.

Skip it if

  • You need an accessible drop-in demo without adding labels, because the supplied usage leaves the slider unnamed.
  • You want a dependency-free native range input or a smaller interaction layer.
  • Your project does not use Tailwind and you do not want to translate its utility and theme-token styling.

Install

Installation record for shadcn-slider
Declared dependenciesradix-ui, clsx, tailwind-merge
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno provider required in the harness

In a non-shadcn project, add Radix UI, clsx, and tailwind-merge; provide a cn helper; configure Tailwind theme tokens used by the classes; and replace or configure the path alias. Add an accessible label or per-thumb aria-label values wherever the component is used.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/shadcn-ui/ui
License
MIT
Record published
2026-08-16

Alternatives

Other published entries for the slider pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.