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: apps/docs/content/components/Hero/react.mdx
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,36 @@ import {Hero} from '@primer/react-brand'
76
76
</>
77
77
```
78
78
79
+
### Video
80
+
81
+
`Hero` includes support for inserting videos.
82
+
83
+
Use [VideoPlayer](/components/VideoPlayer), a native `<video>` element or a YouTube embed as valid `children`. Similarly to `Hero.Image`, use the `position` prop to alternate between various layouts.
84
+
85
+
```jsx live
86
+
<Hero>
87
+
<Hero.Label>Label</Hero.Label>
88
+
<Hero.Heading>This is my super sweet hero heading</Hero.Heading>
89
+
<Hero.Description>
90
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit
91
+
ullamcorper id. Aliquam luctus sed turpis felis nam pulvinar risus
Copy file name to clipboardExpand all lines: apps/next-docs/content/components/Hero/react.mdx
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,35 @@ import {Hero} from '@primer/react-brand'
60
60
</Stack>
61
61
```
62
62
63
+
### Video
64
+
65
+
`Hero` includes support for inserting videos.
66
+
67
+
Use [VideoPlayer](/components/VideoPlayer), a native `<video>` element or a YouTube embed as valid `children`. Similarly to `Hero.Image`, use the `position` prop to alternate between various layouts.
68
+
69
+
```jsx live
70
+
<Hero>
71
+
<Hero.Label>Label</Hero.Label>
72
+
<Hero.Heading>This is my super sweet hero heading</Hero.Heading>
73
+
<Hero.Description>
74
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
0 commit comments