Video
Video player element supporting multiple sources including HTML5 video, YouTube, and Vimeo embeds with customizable playback controls.
Live Preview
Code
1<!-- HTML5 Video -->2<video3 class="video"4 controls5 poster="/video-poster.jpg"6>7 <source src="/video.mp4" type="video/mp4" />8 <source src="/video.webm" type="video/webm" />9 Your browser does not support the video tag.10</video>1112<!-- YouTube Embed -->13<div class="video-wrapper video-wrapper--16x9">14 <iframe15 src="https://www.youtube.com/embed/VIDEO_ID"16 title="Video title"17 frameborder="0"18 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"19 allowfullscreen20 ></iframe>21</div>2223<!-- Vimeo Embed -->24<div class="video-wrapper video-wrapper--16x9">25 <iframe26 src="https://player.vimeo.com/video/VIDEO_ID"27 title="Video title"28 frameborder="0"29 allow="autoplay; fullscreen; picture-in-picture"30 allowfullscreen31 ></iframe>32</div>
Brand Properties
Video Settings
| Property | Type | Brand Default | HoB Value | TAE Value |
|---|---|---|---|---|
| Video Source | Text input | (empty) | - | - |
| Autoplay | Checkbox | Off | - | - |
| Controls | Checkbox | On | - | - |
| Loop | Checkbox | Off | - | - |
| Muted | Checkbox | On | - | - |
| Cover Image | Text input | (empty) | - | - |
| Aspect Ratio | Toggle | Original | - | - |
| Video Width | Slider | 500px | - | - |
Spacing & Layout
| Property | Type | Brand Default | HoB Value | TAE Value |
|---|---|---|---|---|
| Margins | Input (px) | 0 | - | - |
| Padding | Input (px) | 0 | - | - |
Styling
| Property | Type | Brand Default | HoB Value | TAE Value |
|---|---|---|---|---|
| Corner Radius | Input (px) | 0 | sm=4px, md=8px, lg=12px | sm=4px, md=8px, lg=12px |
| Border Style | Dropdown | none | - | - |
| Border Width | Input | 0px | - | - |
| Border Color | Color picker | rgb(0,0,0) | - | - |
| Opacity | Slider | 100% | - | - |
| Shadow | Toggle | Off | sm, md, lg | sm, md, lg |
Content Section
| Property | Type | Brand Default | HoB Value | TAE Value |
|---|---|---|---|---|
| Max Width | Input (px) | 1110 | - | - |
| Margins | Input (px) | 20 | - | - |
| Padding | Input (px) | 0 | - | - |
Variants
Aspect Ratios
16:9
Standard (16:9)4:3
Classic (4:3)21:9
Ultrawide (21:9)Custom Play Button
Video with Caption
Learn how to apply Manjish Glow Elixir Face Oil for best results
Video Sources
YouTube
Supports standard YouTube URLs and embed URLs:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_ID
Vimeo
Supports standard Vimeo URLs:
https://vimeo.com/VIDEO_IDhttps://player.vimeo.com/video/VIDEO_ID
HTML5 Video
Supports common video formats:
- MP4 (H.264) - Best compatibility
- WebM - Modern browsers, smaller files
- Ogg - Legacy support
Accessibility
- Always provide a
titleattribute for iframe embeds - Include captions/subtitles for audio content
- Avoid autoplay with audio (requires user interaction)
- Provide transcript for important video content
- Ensure controls are keyboard accessible
- Don't rely on video alone for critical information
Do's and Don'ts
Do
- Provide poster images for videos
- Use appropriate aspect ratios
- Include captions for accessibility
- Optimize video files for web
- Consider lazy loading for multiple videos
Don't
- Autoplay with sound
- Hide video controls
- Use massive uncompressed videos
- Forget about mobile data usage
- Rely on video for critical content without alternatives
Unmapped Brand Values
The following brand values are available but not currently mapped to specific Video element properties:
HoB
| Category | Token | Value |
|---|---|---|
| Border Radius | radius-sm | 4px |
| Border Radius | radius-md | 8px |
| Border Radius | radius-lg | 12px |
| Shadows | shadow-sm | Small shadow |
| Shadows | shadow-md | Medium shadow |
| Shadows | shadow-lg | Large shadow |
TAE (The Ayurveda Experience)
| Category | Token | Value |
|---|---|---|
| Border Radius | radius-sm | 4px |
| Border Radius | radius-md | 8px |
| Border Radius | radius-lg | 12px |
| Shadows | shadow-sm | Small shadow |
| Shadows | shadow-md | Medium shadow |
| Shadows | shadow-lg | Large shadow |
Note: Neither HoB nor TAE brand guidelines include specific video styling tokens. The border radius and shadow tokens listed above can be applied to video containers when needed.
Related Elements
- Image - For static visual content
- Slideshow - For image galleries
- Video Components - Pre-built video layouts
