VideoButtoncomponent
VideoButton({ children, title, onClick, disabled, ...variants }: VideoButtonProps): ReactElement| Param | Type | |
|---|---|---|
variants | VideoButtonProps | Props for VideoButton — children plus optional title, onClick, danger, and disabled. required |
.title | string | |
.onClick | (event: MouseEvent<HTMLButtonElement>) => void | |
.danger | boolean | |
.disabled | boolean |
| 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>