Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / dist / components / presets / Studio / Video / typings.d.ts
Size: Mime:
import { ReactNode } from 'react';
import { VideoProps } from 'atoms/Video';
export interface VideoPresetStateType {
    isPlaying: boolean;
    shouldAutoPlay: boolean;
    hasNativeControls: boolean;
    hasPlayButton: boolean;
    shouldShowVideoInformation: boolean;
    defaultProps: object;
    shouldLoop: boolean;
    setIsPlaying(isPlaying: boolean): void;
    toggleIsPlaying(): void;
    setProps(props: VideoPresetProps): void;
}
/**
 * @todo renderShare, renderTitle, renderLength...
 * ^ but not needed as much as `renderControls`
 */
export interface VideoPresetControlProps {
    title: string;
    slogan: string;
    shareTitle: string;
    videoLength: string;
    state?: VideoPresetStateType;
}
export interface VideoPresetRenderProp extends Function {
    (props: VideoPresetProps, state?: VideoPresetStateType): ReactNode;
}
export interface VideoPresetProps extends VideoProps {
    shouldShowVideoInformation?: boolean;
    hasPlayButton?: boolean;
    state?: VideoPresetStateType;
    renderVideo?: VideoPresetRenderProp;
    renderControls?: VideoPresetRenderProp;
}