Skip to content
Embed consent, light
Light
Embed consent, dark
Dark

Every state

  • Embed consent, default, light
    Embed consent, default, dark

    default

  • Embed consent, focus, light
    Embed consent, focus, dark

    focus

  • Embed consent, focus-always, light
    Embed consent, focus-always, dark

    focus-always

  • Embed consent, map, light
    Embed consent, map, dark

    map

  • Embed consent, loaded, light
    Embed consent, loaded, dark

    loaded

Props

PropTypeDefaultWhat it does
idstring"embed"Id; the heading id hangs off it.
providerstring"Streamly"Who serves the embed.
kind"video" | "map""video"Changes the icon and wording, not the layout.
titlestring–What the embed shows; the heading and the iframe title.
sharesstring–What loading it shares with the provider.
privacyHrefstring"#streamly-privacy"The provider's privacy policy.
aspectRatiostring"16 / 9"The embed's width / height; the placeholder takes the same size.
srcstring"about:blank"Iframe source, used when there are no children.
loadOnceLabelstring"Load once"Text of the load-once button.
allowedboolean–Starts loaded (previews, or a provider already allowed).
childrenReactNode–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.
classNamestring–Extra classes on the wrapper.

More consent

All 6
consent-04 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans