Reference
Presentation
Root of a slide deck; its children must be slides.
Presentation { … }
Before 5.0
Slides
No props to try.
No preview for this one: the example below shows how it is written.
Example
Presentation {
TitleSlide("Q3 review", subtitle: "Northwind Ltd · October 2026")
SectionSlide("The numbers").primary
Slide {
Heading("Highlights").h1
List {
List.Item { Text("Revenue up 15%") }
List.Item { Text("Three new enterprise customers") }
}
}
TwoColumn {
Container { Heading("Wins").h2 Text("Self-serve plan launched") }
Container { Heading("Risks").h2 Text("Hiring behind plan") }
}
ImageSlide(src: "/og.png", caption: "The launch card")
}
Props
This element takes no props of its own.
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
children
Renders with the class wf-presentation, stable across releases, so a stylesheet may target it.
Codes this can raise
These controls list the props' cases; the example below shows them written.