This page as markdown: /video.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Video

Status: stable

Styled 16:9 video player frame. Mounts a native

Keywords: video, media, player, demo

Usage

Use Video to embed playable or previewable video media inside a page.

Best practices

Props

Name Type Default Description
onRequestPlay () => void — Placeholder only (no src): renders the play mark as a real button labelled by playLabel that calls this — e.g. to load the source. Without it the mark is decorative.
playLabel string "Play video" Accessible name of the placeholder play button (with onRequestPlay).
src string — Video source URL. When omitted, a poster/placeholder with a play overlay renders.
poster string — Poster image shown before playback (and as the placeholder backdrop).
controls boolean true Show native playback controls.

Tokens used

border, overlay, overlay-foreground, ring

Motion

Accessibility

Related

Examples

With a poster

import { Video } from "@sableui/react"

<Video poster="/cover.jpg" src="/clip.mp4" />

Placeholder (no src)

import { Video } from "@sableui/react"

<Video poster="/cover.jpg" />

Placeholder that loads on play

import { Video } from "@sableui/react"

<Video poster="/cover.jpg" src={src} onRequestPlay={() => setSrc("/clip.mp4")} />