@devbookhq/docusaurus-code-video-plugin
Version:
Add a video to a Docusaurus code block and highlight code lines as the video plays.
11 lines (10 loc) • 340 B
TypeScript
import { ReactNode } from 'react';
export interface Props {
youtubeID: string;
onTimeChange?: (time: number) => void;
children?: ReactNode;
onOpen?: () => void;
onClose?: () => void;
}
declare function VideoPlayer({ youtubeID, children, onTimeChange, onOpen, onClose, }: Props): JSX.Element;
export default VideoPlayer;