Customising the editor

<VideoEditor
  customize={{
    hide: ['captions', 'blur', 'videos'],
    railOrder: ['media', 'brand', 'text'],
    panels: [
      {
        id: 'brand',
        label: 'Brand',
        icon: 'M4 4h16v16H4z', // one SVG path on a 24 × 24 grid
        render: (ctl) => <BrandKit ctl={ctl} />,
      },
    ],
    buttons: [{ id: 'share', label: 'Share', onClick: (ctl) => share(ctl.project) }],
    mediaSources: [stockFootage],
  }}
/>

Hide or reorder

hide takes ids of left-menu panels (templates, text, captions, audio, stickers, filters, transitions, blur), tools (speed, mask, key, cutout…), commands (duplicate, copy…) and videos (Your videos). railOrder sorts the left menu, your panels included.

Your own media

const stockFootage: MediaSource = {
  id: 'stock',
  label: 'Stock footage',
  async search({ text, cursor }, signal) {
    const page = await api.search(text, cursor, { signal });
    return {
      items: page.results.map((r) => ({
        id: r.id,
        name: r.title,
        kind: 'video',
        thumbnailUrl: r.thumb,
        duration: r.seconds,
        credit: r.licence, // kept with the media in the project
      })),
      next: page.next,
    };
  },
  load: (item, signal) => api.download(item.id, { signal }), // a Blob
};

Text and languages

Every word in the editor comes from labels; pass any of them to translate or rename (DEFAULT_LABELS lists them). dir="rtl" mirrors the chrome for right-to-left languages.