UNPKG

react-lite-youtube-embed

Version:

A private by default, faster and cleaner YouTube embed component for React applications

32 lines (31 loc) 968 B
import * as React from "react"; export type imgResolution = "default" | "mqdefault" | "hqdefault" | "sddefault" | "maxresdefault"; export interface LiteYouTubeProps { announce?: string; id: string; title: string; activatedClass?: string; adNetwork?: boolean; aspectHeight?: number; aspectWidth?: number; iframeClass?: string; noCookie?: boolean; cookie?: boolean; enableJsApi?: boolean; alwaysLoadIframe?: boolean; params?: string; playerClass?: string; playlist?: boolean; playlistCoverId?: string; poster?: imgResolution; webp?: boolean; wrapperClass?: string; onIframeAdded?: () => void; muted?: boolean; thumbnail?: string; rel?: string; containerElement?: keyof React.JSX.IntrinsicElements; style?: React.CSSProperties; } declare const _default: React.ForwardRefExoticComponent<LiteYouTubeProps & React.RefAttributes<HTMLIFrameElement>>; export default _default;