VideoButtoncomponent

VideoButton({ children, title, onClick, disabled, ...variants }: VideoButtonProps): ReactElement
ParamType
variantsVideoButtonProps
Props for VideoButton — children plus optional title, onClick, danger, and disabled. required
    .titlestring
    .onClick(event: MouseEvent<HTMLButtonElement>) => void
    .dangerboolean
    .disabledboolean
Return
ReactElement
Rendered <button> element overlaid on the video.

Individual video button over a video — renders a <button>.

Examples

<VideoButton title="Play" onClick={play}><PlayIcon /></VideoButton>