Skip to content
Theme UI
GitHub

Embed

Responsive iframe for video embeds.

import { Embed } from 'theme-ui'

Props besides sx will be passed to the iframe itself, since using a title prop or other labels are recommended for accessibility.

Embed variants can be defined anywhere in the theme object.

Edit the page on GitHub
Previous:
Donut
Next:
Field