Slider Volume Vertical
A tall pill you drag up and down like a phone volume control; the fill follows on a spring, the pill stretches when you pull past either end, and M mutes.
slidervolumeverticalaudiomixer
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/slider-volume-vertical.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/slider-volume-vertical.json"Manual install+
1. Install the dependencies.
$pnpm add lucide-react motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Slider Volume Vertical" component from PixelPapa UI to this project. What it is: A tall pill you drag up and down like a phone volume control; the fill follows on a spring, the pill stretches when you pull past either end, and M mutes. Category: Sliders. Depends on: lucide-react, motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/slider-volume-vertical.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/slider-volume-vertical.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/slider-volume-vertical" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More sliders
- Slider Circular DialA thermostat-style dial: drag the knob around a 270° arc and the gradient track, knob and reading follow on a spring; presets sweep it to a new value.
- Slider Range DualA two-thumb range slider under a histogram whose bars light up inside the selection; thumbs keep a minimum gap and the nearest one follows a track press.
- Slider Ruler TicksA ruler you drag or flick under a fixed needle; it coasts with inertia, snaps to the nearest tick and shows the reading large in the centre.
- Slider Spring ThumbA slider whose value bubble trails the thumb on a loose spring and leans into the direction of travel, then settles upright.
- Slider Stepped LabelsA discrete slider with labelled stops: the thumb follows your finger freely, then springs onto the nearest stop while its label lights up.