Bulge Volume
betaA vertical volume pill whose fill rises and falls with a round blob at its top edge that bulges as it moves.
- Forms
- 1 file
- 2 npm packages
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add bulge-volumenpm packages installed: class-variance-authority, radix-ui.
import { BulgeVolume } from "@/components/ui/bulge-volume";Default
Demo
Sizes
<BulgeVolume>
| Prop | Type | Default |
|---|---|---|
defaultValueInitial level when uncontrolled. | number | 60 |
formatValueSpoken value ( | (value: number) => string | — |
onValueChangeCalled on every change while dragging or keying. | (value: number) => void | — |
onValueCommitCalled when an interaction ends. | (value: number) => void | — |
showIconShows the speaker glyph under the pill. | boolean | true |
size | "sm" | "md" | "lg" | "md" |
valueControlled level. | number | — |
wrapperClassNameClass for the wrapper that holds the pill and the speaker glyph. | string | — |
Every prop of Radix UI’s Slider.Root, plus className.
Built on the Radix slider primitive in vertical orientation: a role="slider" thumb with aria-orientation="vertical", aria-valuenow and a percentage aria-valuetext, moved by Arrow keys, Page Up/Down, Home/End and pointer drag. It is named "Volume" unless aria-label or aria-labelledby says otherwise. The focus ring is drawn around the whole pill. The fill, blob and speaker glyph are aria-hidden. Under reduced motion the level jumps and the blob does not squash.
9/10
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — passes
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — fails
- No fixed widths — passes