MD-01Media
Clip Trimmer
A video trim timeline with a filmstrip, handles that snap to whole seconds and a playhead that loops the kept range.
PROAudio Player Card and more like it are in Kokonut UI Pro
Installation
Clip Trimmer is a free, open-source React component in the Kokonut UI Media collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/clip-trimmer.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/clip-trimmerOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/clip-trimmer.tsx.
npm install lucide-reactUsage
import ClipTrimmer from "@/components/kokonutui/clip-trimmer";
export default function Example() {
return <ClipTrimmer />;
}Props
srcstringDefault built-inA wide image the demo pans across to stand in for footage. Swap the preview and filmstrip for your own video and frame grabs.
altstringDefault "A valley road at dusk"durationnumberDefault 12Clip length in seconds.
defaultRangeClipRangeDefault { start: 2.4, end: 9 }minLengthnumberDefault 1The shortest clip you can trim to, in seconds.
onRangeChange(range: ClipRange) => voidclassNamestringExtra classes for the root element.
ClipRange
startrequirednumberendrequirednumberDependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.
Media Components
Free React media components: clip trimmer, contact sheet, synced transcript, focal point picker and photo straightening, built with Tailwind CSS and Motion.
Synced Transcript
A transcript that follows the spoken word, lets you click any word to jump there, and waits when you scroll away.

