UNPKG

@100mslive/roomkit-react

Version:

![Banner](https://github.com/100mslive/web-sdks/blob/06c65259912db6ccd8617f2ecb6fef51429251ec/prebuilt-banner.png)

25 lines (17 loc) 722 B
## `<Video />` component You can directly use `<Video />` all it needs is `trackId` to render the video. This is a headless component to style it you can pass only valid css styles and className. ```jsx import { useVideo } from '@100mslive/react-sdk'; import { Video } from '../'; const VideoComponent = () => { return <Video trackId="2" />; }; ``` ## Styled Video component We use Stitches as our styling solution which provides a `css` prop for overriding styles easily. It’s like the style attribute, but it supports tokens, media queries, nesting and token-aware values. Here's an example: ```jsx const StyledVideoComponent = () => { return <Video css={{ width: 500, height: 300 }} trackId="2" />; }; ```