UNPKG

@baskvava/react-video-modal

Version:

This is a react library for video embbeded in modal

19 lines (18 loc) 626 B
import "./ModalVideo.css"; interface Props { isOpen: boolean; onClosed: () => void; url: string; title: string; header?: string | JSX.Element; maxWidth?: number; width?: number; responsive?: boolean; widthRatio?: number; ratio?: number[]; autoPlay?: boolean; type?: "video" | "iframe"; controls?: "custom" | "default" | "hidden"; } declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, type, controls, }: Props): import("react/jsx-runtime").JSX.Element | null; export default ModalVideo;