react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
35 lines (34 loc) • 942 B
TypeScript
import { BaseProps } from './types';
export interface WiredVideoProps extends BaseProps {
/**
* URL of the video file.
* @default https://res.cloudinary.com/gojutin/video/upload/w_400/v1585407774/cat-video.mp4
*/
src?: string;
/**
* Should the video auto-play?
* @default false
*/
autoPlay?: boolean;
/**
* Should the video loop?
* @default false
*/
loop?: boolean;
/**
* Should the video be muted?
* @default false
*/
muted?: boolean;
/**
* Play the video inline on mobile devices.
* @default false
*/
playsInline?: boolean;
/**
* Color of the progress bar and the knob on the volume control.
* @default black
*/
color?: string;
}
export declare const WiredVideo: ({ src, autoPlay, loop, muted, playsInline, color, className, style, }: WiredVideoProps) => JSX.Element;