New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@yoopta/video

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yoopta/video

Video plugin for Yoopta Editor

latest
Source
npmnpm
Version
6.0.2
Version published
Maintainers
1
Created
Source

@yoopta/video

Video block plugin for Yoopta Editor. Renders video blocks (embed or file) with optional caption and settings. Use headless or with theme UI from @yoopta/themes-shadcn.

Installation

yarn add @yoopta/video

Usage

Pass the plugin to createYooptaEditor. Do not pass plugins to <YooptaEditor>.

import { useMemo } from 'react';
import YooptaEditor, { createYooptaEditor } from '@yoopta/editor';
import Video from '@yoopta/video';

const plugins = [Video];

export default function Editor() {
  const editor = useMemo(() => createYooptaEditor({ plugins, marks: [] }), []);
  return <YooptaEditor editor={editor} onChange={() => {}} />;
}

Themed UI

import { applyTheme } from '@yoopta/themes-shadcn';
const plugins = applyTheme([Paragraph, Video, /* ... */]);

Or: Video.extend({ elements: VideoUI }) with VideoUI from @yoopta/themes-shadcn/video.

Plugin options

Options may include onError or custom handlers. See the package types and Video plugin docs.

Extend

Video.extend({
  elements: {
    video: { render: (props) => <YourVideoBlock {...props} /> },
  },
  options: {
    display: { title: 'Video', description: 'Add a video' },
  },
});

See Video plugin docs.

FAQs

Package last updated on 16 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts