You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/src/content/docs/components/display-video.mdx
+25-13Lines changed: 25 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,6 @@ Displays a video within your Buttonize app.
27
27
[38;5;39mDisplay.video[0m(url, props)
28
28
```
29
29
30
-
The video link must be a valid value for the `src` attribute of an HTML `<video>` tag.
31
-
32
-
Embeddable YouTube video links and other such `<iframe>`-based links will not work.
33
-
34
30
## Usage
35
31
36
32
<FrameworkContent>
@@ -70,15 +66,31 @@ Embeddable YouTube video links and other such `<iframe>`-based links will not wo
70
66
<PropDescription>
71
67
<Fragmentslot="title">
72
68
{/* keep-good-prettier-formatting */}
73
-
### muted
69
+
### url
74
70
</Fragment>
75
-
<PropMarkerslot="markers"type="optional" />
76
-
<Fragmentslot="type">boolean</Fragment>
71
+
<PropMarkerslot="markers"type="required" />
72
+
<Fragmentslot="type">string</Fragment>
77
73
<Fragmentslot="description">
78
-
Initial muted state of the video. Default is `false`.
79
-
</Fragment>
80
-
</PropDescription>
81
-
<SpacingProps />
82
-
<SizingProps />
83
-
</Fragment>
74
+
The source URL of the video.
75
+
76
+
The video URL must be a valid value for the `src` attribute of an HTML [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video) tag.
77
+
78
+
Embeddable YouTube video links and other such `<iframe>`-based links will not work.
79
+
</Fragment>
80
+
</PropDescription>
81
+
<PropDescription>
82
+
<Fragmentslot="title">
83
+
{/* keep-good-prettier-formatting */}
84
+
### muted
85
+
</Fragment>
86
+
<PropMarkerslot="markers"type="optional" />
87
+
<Fragmentslot="type">boolean</Fragment>
88
+
<Fragmentslot="description">
89
+
Initial muted state of the video. Default is `false`.
0 commit comments