Component packs › Fader › Trim Handles

Trim Handles

Bracket handles over a clip snap to the pauses between sentences, so a cut never lands mid-word, while a playhead loops what you keep.

Trim Handles is a dual range from Fader, a component pack with 8 sliders: Eight sliders, each a real mechanism: a console fader, a radio dial, beads on a wire, a zipline. Price: $2 for the whole pack.

Built with: snap to silence, looping playhead, waveform.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Trim Handles props

PropTypeDefaultDescription
durationnumber42Clip length in seconds. Default 42.
value[number, number][6.2, 27.4] (snapped to the nearest pauses)[in, out] in seconds. Default [6.2, 27.4] (snapped to the nearest pauses).
minLengthnumber1Shortest clip you can keep, in seconds. Default 1.
snapbooleantrueSnap handles to pauses in the audio. Default true.
peaksnumber[]a generated spoken trackYour own loudness envelope (0–1 values, spread over the clip). Default: a generated spoken track.
playingbooleantrueLoop the kept part with a playhead. Default true.
labelstring
disabledboolean
darkboolean
onChange(value: [number, number]) => void
autoplaynumber | falseShowcase mode: trims to a new pair of pauses every N ms while visible.

Methods on the ref

Use it in React

import TrimHandles from './TrimHandles';

<TrimHandles />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Fader

Good for: Sliders.