Banners
Basics

Banner basics

A banner is a typed content block rendered on a page. Every banner shares a small set of common properties, then extends them with type-specific props.

Common props

DefaultBannerProps<T>

Used by every banner type.

typename
T extends BannerTypename
required

Discriminator for the banner type. Used for routing, CMS validation, and renderer selection.

title
Maybe<string>

Optional title shown by many banner renderers.

titleTag
'h1' | 'h2'
required

Semantic heading tag for the title.

titleAlign
'left' | 'center' | 'right'
required

Title alignment used by the renderer.

BannerCSS

Optional CSS identifiers that can be attached to any banner.

cssId
Maybe<string>

Optional DOM id for anchor navigation and testing.

cssClasses
Maybe<string>

Optional extra classes applied to the banner wrapper.

Conventions

Placeholders

When a banner references an image, documentation pages show a placeholder:

Placeholder banner image