IframeBanner
Embeds an external site/application via <iframe>.
Includes the common banner props.
Props
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, iframe can use full-width layout.
align●required
'left' | 'center' | 'right'
Horizontal alignment inside the wrapper.
Notes
- Treat
srcas untrusted input; sanitize and restrict allowed 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'
};