Reference

TitleSlide

Cover slide: title and subtitle, vertically centred.

TitleSlide(_ title: String, subtitle: String)

Before 5.0

Slides

No preview for this one: the example below shows how it is written.

Example

wf

Presentation { TitleSlide("Shipping WebFluent 7", subtitle: "Platform team · 17 November 2026") }

Props

Props of TitleSlide
PropTypeUnsetMeaning

title

String (positional)

—

The title, an <h1> centred on the slide

subtitle:

String

none

A line under the title

Attribute families: global, aria, data. Plus the 22 universal props every element takes: animate:, exit:, speed:, duration:, delay:, easing:, stagger:, on:, count:, shared:, class:, ref:, drag:, dragGroup:, dropValue:, dropAxis:, dropInside:, roving:, trapFocus:, mount:, update:, cleanup:.

Flags and cases

A flag is written after the parentheses with a dot: a Bool prop, or a case of one of the element's enum props. A case the enum lacks is an error with a hint.

No flags of its own.

Events

Every element also takes the props, the events and the attribute families listed on every element.

Slots

It takes no slots.

Renders with the class wf-title-slide, stable across releases, so a stylesheet may target it.

These controls list the props' cases; the example below shows them written.