Skip to main content

FaderBank

A row of vertical faders sharing one scale, read as a silhouette.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A row of vertical faders sharing one scale, read as a silhouette.

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/fader-bank
import { FaderBank } from '@/components/prism/FaderBank';

In a no-build prototype, read it from the bundle instead: const { FaderBank } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
fadersFaderSpec[]—
minnumber—ONE scale for the whole bank — per-fader ranges destroy the comparison.
maxnumber—
stepnumber—Granularity when free-flowing (ignored when snap is set). Default 1.
snapnumber[]—Optional shared snap detents for the whole bank (all faders share one scale, so the detents are shared too). When given, every fader snaps to the NEAREST of these values and tick marks render. Omit for free-flowing. e.g. snap={[0, 25, 50, 75, 100]}.
heightnumber—Travel height in px. Default 180.
formatValue(v: number) => React.ReactNode—
onChange(index: number, value: number, fader: FaderSpec) => void—
isDisabledboolean—
classNamestring—