Skip to content

Video ​

Responsive embed or native video

An embedded video — a trailer from YouTube or Vimeo (an iframe), or your own file (native). title names the frame; it's required.

Basic
  • With native, put <track kind="captions"> (and <source>s) in the default slot. Caption spoken content; it's the accessible way in for many people.
  • ratio keeps the frame's shape before the player loads.

Usage ​

ts
import { BlessVideo } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
src*string—iframe URL (YouTube / Vimeo embed, etc.) or a video file
title*string—
ratiostring | number"16 / 9"
nativebooleanfalsetrue = <video>, false = <iframe>
posterstring—

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.