

Every state


default


focus


focus-always


map


loaded
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "embed" | Id; the heading id hangs off it. |
| provider | string | "Streamly" | Who serves the embed. |
| kind | "video" | "map" | "video" | Changes the icon and wording, not the layout. |
| title | string | – | What the embed shows; the heading and the iframe title. |
| shares | string | – | What loading it shares with the provider. |
| privacyHref | string | "#streamly-privacy" | The provider's privacy policy. |
| aspectRatio | string | "16 / 9" | The embed's width / height; the placeholder takes the same size. |
| src | string | "about:blank" | Iframe source, used when there are no children. |
| loadOnceLabel | string | "Load once" | Text of the load-once button. |
| allowed | boolean | – | Starts loaded (previews, or a provider already allowed). |
| children | ReactNode | – | The embed itself; replaces the iframe. |
| onLoad | () => void | – | Called when it is loaded once. |
| onAlwaysAllow | (provider: string) => void | – | Called with the provider on Always allow. Store that choice yourself. |
| className | string | – | Extra classes on the wrapper. |
More consent
All 6consent-04 is in UI ProGet UI Pro, €199


