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
Copy file name to clipboardExpand all lines: docs/components/video.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,19 @@ The HTML video tag implemented in ruby.
8
8
The video tag takes a mandatory path argument and can take a number of optional configuration params.
9
9
10
10
#### # path
11
-
Expects a string with the source to the image. It looks for the image in the `assets/videos` folder and uses the standard Rails asset pipeline.
11
+
Expects a string with the source to the video. It looks for the video in the `assets/videos` folder and uses the standard Rails asset pipeline.
12
12
13
13
#### # id, class
14
14
Like most of the core components, you can give a video an id and a class.
15
15
16
16
#### # height (optional)
17
-
Expects an integer with the height of the image in px.
17
+
Expects an integer with the height of the video in px.
18
18
19
19
#### # width (optional)
20
-
Expects an integer with the width of the image in px.
20
+
Expects an integer with the width of the video in px.
21
21
22
22
#### # alt (optional)
23
-
Expects a string with the alt text the image should have.
23
+
Expects a string with the alt text the video should have.
24
24
25
25
#### # preload
26
26
Expects a string (`auto`, `metadata` or `none`) and specifies whether the whole video/only metadata/nothing should be loaded on pageload. Default (if not specified) depends on the client's browser.
0 commit comments