UNPKG

@devbookhq/docusaurus-code-video-plugin

Version:

Add a video to a Docusaurus code block and highlight code lines as the video plays.

8 lines (7 loc) 264 B
import { type Props } from '@theme-init/CodeBlock'; declare function useVideoHighlight(props: Props): { metastring: string | undefined; handleTimeChange: ((time: number) => void) | undefined; hasHighlight: boolean; }; export default useVideoHighlight;