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. ratiokeeps the frame's shape before the player loads.
Usage
ts
import { BlessVideo } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
src* | string | — | iframe URL (YouTube / Vimeo embed, etc.) or a video file |
title* | string | — | |
ratio | string | number | "16 / 9" | |
native | boolean | false | true = <video>, false = <iframe> |
poster | string | — |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |