UNPKG

@santigp258/react-simple-lightbox-video-image

Version:

A simple and customizable react lightbox component that support video and image. Also enables swipe and doble tap gesture. This component can be compatible with Next js

20 lines (19 loc) 678 B
import React, { CSSProperties } from 'react'; import { ResourcersType, VideoImagePropsType } from '../types'; interface ResourcesProps { resource: ResourcersType; CustomImage?: (props: VideoImagePropsType) => JSX.Element; CustomVideo?: (props: VideoImagePropsType) => JSX.Element; scale: number; y: number; x: number; imageContainerStyle?: CSSProperties; imageStyle?: CSSProperties; frameStyle?: CSSProperties; imageClassname?: string; imageContainerClassName?: string; frameClassname?: string; onLoad: () => void; } declare const Resource: React.FunctionComponent<ResourcesProps>; export default Resource;