docs/components/data/MediaTrimmer

MediaTrimmer

Video/audio trim range selector.

import { MediaTrimmer } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
src *string
onTrimChange *(start: number, end: number) => void
thumbnailCountnumber
minDurationnumber
classstring
styleJSX.CSSProperties

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-accent-hover
  • --sk-bg-primary
  • --sk-font-size-sm
  • --sk-radius-md
  • --sk-space-md
  • --sk-text-primary
  • --sk-text-secondary