Videocomponent
Video({ children, ...variants }: VideoProps): ReactElement| Param | Type | |
|---|---|---|
variants | VideoProps | Props for Video — space and width variants plus optional children. required |
| Return | |
|---|---|
ReactElement | Rendered <figure> video container. |
Video container element.
- Has a black background and a 16:9 aspect ratio.
- Shows its contents (i.e. a
<video>element or a<TwilioRoom>.
Examples
<Video><video src="/clip.mp4" /></Video>