Aller au contenu
⌘K

ArdoEmbed

Voir en Markdown
Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.

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

NameTypeRequiredDescription
srcstringYesHTTPS 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.
titlestringYesAccessible title of the frame, announced by screen readers.
aspectRatiostringNoWidth-to-height ratio of the frame, as a CSS aspect-ratio value. Defaults to "16 / 9".
allowstringNoPermissions for the frame, as an allow attribute value, such as "fullscreen".
classNamestringNoAdditional CSS class.

Props type: ArdoEmbedProps

Example

<Embed src="https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ" title="Product tour" />