Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Video

Video renders a video thumbnail that opens an embedded video in an accessible modal dialog.

MDX@gaudi/design-system/mdx/VideoView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import Video from '@gaudi/design-system/mdx/Video';

Usage

<Video  animationStyle='from-center'  videoSrc='/static/media/video-player.html'  thumbnailSrc='/static/images/og-card.jpg'  thumbnailAlt='Video preview'  title='Video walkthrough'/>

Examples

Playground

Storybook

API

10 props

Accessibility

Video uses a native button for the thumbnail trigger, an aria-modal dialog, Escape-to-close behavior, labelled close controls, and returns focus to the trigger when closed.