ArdoEmbed
On this page
Responsive iframe for videos and other embeddable content.
The frame loads lazily and sends only the origin as the referrer. It has no sandbox
attribute, so the embedded page runs with the default iframe permissions. Only embed content
you trust.
import { ArdoEmbed } from "ardo/ui"
<ArdoEmbed src={…} title={…} />
Props
| Name | Type | Required | Description |
|---|---|---|---|
src | string | Yes | HTTPS URL of the content to embed, such as a video player page. Relative URLs and other protocols render nothing and log a warning in development. |
title | string | Yes | Accessible title of the frame, announced by screen readers. |
aspectRatio | string | No | Width-to-height ratio of the frame, as a CSS aspect-ratio value. Defaults to "16 / 9". |
allow | string | No | Permissions for the frame, as an allow attribute value, such as "fullscreen". |
className | string | No | Additional CSS class. |
Props type: ArdoEmbedProps
Example
<Embed src="https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ" title="Product tour" />