Component packs › Fader › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
duration | number | 42 | Clip 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). |
minLength | number | 1 | Shortest clip you can keep, in seconds. Default 1. |
snap | boolean | true | Snap handles to pauses in the audio. Default true. |
peaks | number[] | a generated spoken track | Your own loudness envelope (0–1 values, spread over the clip). Default: a generated spoken track. |
playing | boolean | true | Loop the kept part with a playhead. Default true. |
label | string | ||
disabled | boolean | ||
dark | boolean | ||
onChange | (value: [number, number]) => void | ||
autoplay | number | false | Showcase mode: trims to a new pair of pauses every N ms while visible. |
readonly value: [number, number]setValue(v: [number, number], silent?: boolean): voiddestroy(): voidimport TrimHandles from './TrimHandles';
<TrimHandles />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Sliders.