Measured entry

tripled-volume-component-shadcnui

sliderminimal-flatmotion on file

A client-side React volume slider distributed as a shadcn registry component. It supports click and animated drag interaction, configurable bounds and steps, and an onChange callback. It uses Framer Motion plus Tailwind and shadcn theme classes, and imports the project-local cn utility.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-volume-component-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-volume-component-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-volume-component-shadcnui 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 tripled-volume-component-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal72.7 KB (138.1 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1m 27s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/@uitripled/react-shadcn/src/components/components/sliders/volume-component.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A polished interaction for an existing shadcn codebase, but not a drop-in primitive. It needs a shadcn-style setup, and teams should add keyboard semantics and controlled-state support before using it as a general form control.

Use it if

  • You want a compact volume control with animated dragging and click-to-set behavior.
  • Your React app already uses Tailwind, shadcn theme tokens, and the cn utility convention.
  • An internally managed value with an onChange callback fits your state model.

Skip it if

  • You need native slider semantics, keyboard control, or explicit ARIA value metadata without further work.
  • You need a controlled value that can be updated reliably from parent state.
  • You want to avoid Framer Motion for a small, single-purpose control.
  • The track can resize after mounting and the thumb must stay aligned automatically.

Install

Installation record for tripled-volume-component-shadcnui
Declared dependenciesframer-motion, react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, install React, Framer Motion, and the declared Radix dependency; add a cn class-merging helper; configure Tailwind; and define the foreground, muted, secondary, primary, background, popover, and border theme tokens. The registry also declares the shadcn button dependency, although this component does not import it.

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.

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.