Skip to Content
ReferenceBanner catalogDisclosure banner

Disclosure banner

Audience: CMS editors and developers.

Type: DisclosureBanner.

This banner shows a list of items that users can expand or close.

This banner includes the common banner props.

Disclosure block preview

Properties

id●
string
required

CMS ID.

items●
BannerListItem[]
required

Items that users can expand or close, in display order.

BannerListItem uses a Markdown document. The first block contains the question. The other blocks contain the answer.

fullwidth●
boolean

Use the wider constrained content width.

Example

const banner: DisclosureBanner = { typename: BannerTypename.DisclosureBlock, id: 'b_123', title: 'FAQ', titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, items: [ { id: 'i1', document: [ { type: 'heading', level: 3, children: [{ text: 'Shipping' }] }, { type: 'paragraph', children: [{ text: 'Shipping details...' }] } ], nativeIcon: null, image: null, link: null }, { id: 'i2', document: [ { type: 'heading', level: 3, children: [{ text: 'Returns' }] }, { type: 'paragraph', children: [{ text: 'Returns details...' }] } ], nativeIcon: null, image: null, link: null } ], fullwidth: false };

Behavior and limits

  • The first Markdown block supplies the disclosure title. The renderer shows the other blocks as content.
Last updated on