Embedded frame banner
Audience: CMS editors and developers.
Type: IframeBanner.
This banner embeds an external site or application through <iframe>.
This banner includes the common banner props.
Properties
id●required
string
CMS ID.
name●
string | null
Optional iframe name attribute.
allow●
string | null
Optional allow attribute (permissions policy).
width●required
number
CSS pixel width.
height●required
number
CSS pixel height.
loading●required
'eager' | 'lazy'
Loading strategy.
src●required
string
Iframe source URL.
fullwidth●required
boolean
If true, the iframe can use the full width.
align●required
'left' | 'center' | 'right'
Horizontal alignment inside the wrapper.
Behavior and limits
- Treat
srcas untrusted input. Sanitize its value and restrict the permitted domains.
Example
const banner: IframeBanner = {
typename: BannerTypename.IframeBanner,
id: 'b_123',
title: null,
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
name: null,
allow: null,
width: 1200,
height: 600,
loading: 'lazy',
src: 'https://example.com/embed',
fullwidth: false,
align: 'center'
};Last updated on