Skip to content

Commit a11bb6e

Browse files
committed
Refactor VideoPlayer sources prop to use TypeScript syntax
1 parent cfb7e35 commit a11bb6e

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/VideoPlayer.tsx

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,24 @@ export interface VideoPlayerProps extends React.HTMLAttributes<HTMLDivElement> {
5050
* The sources of the video
5151
* @default []
5252
* @example
53-
* ```tsx
54-
* <VideoPlayer
55-
* sources={[
56-
* {
57-
* src: "https://vjs.zencdn.net/v/oceans.mp4",
58-
* type: "video/mp4",
59-
* },
60-
* {
61-
* src: "https://vjs.zencdn.net/v/oceans.webm",
62-
* type: "video/webm",
63-
* },
64-
* {
65-
* src: "https://vjs.zencdn.net/v/oceans.ogv",
66-
* type: "video/ogg",
67-
* },
68-
* ]}
69-
* />
53+
```ts
54+
<VideoPlayer
55+
sources={[
56+
{
57+
src: "https://vjs.zencdn.net/v/oceans.mp4",
58+
type: "video/mp4",
59+
},
60+
{
61+
src: "https://vjs.zencdn.net/v/oceans.webm",
62+
type: "video/webm",
63+
},
64+
{
65+
src: "https://vjs.zencdn.net/v/oceans.ogv",
66+
type: "video/ogg",
67+
},
68+
]}
69+
/>
70+
```
7071
*/
7172
sources?: {
7273
src: string;

0 commit comments

Comments
 (0)