C15T Logo

Frame

Conditionally render children based on consent, with a placeholder for when consent is not given.

Canary Feature

This feature is available in canary releases and may have breaking changes. Use with caution in production. Report issues on GitHub

The Frame component provides an elegant way to conditionally render children based on consent, with a placeholder for when consent is not given. This is designed perfectly for Iframe components like youtube embeds that should only be shown when consent is granted.

Usage

The frame component provides a pre-built placeholder, however, this can be modified with a more custom placeholder to suit your needs.

API Reference

Frame

The main component accepts these props:

Property
Types

Compound Components

Property
Types