Reference

SectionSlide

Full-bleed coloured band with a centred label.

SectionSlide(_ label: String, tone: Enum)

Before 5.0

Slides

tone

primary

success

danger

warning

info

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

Example

wf

Presentation { SectionSlide("Part one: the numbers").primary }

The other tones

wf

Presentation { SectionSlide("Wins").success SectionSlide("Risks").warning SectionSlide("Incidents").danger SectionSlide("Next steps").info }

Props

Props of SectionSlide
PropTypeUnsetMeaning

label

String (positional)

—

The label, an <h2> centred on the band

tone:

one of its cases

none: the primary colour

The colour of the band, which fills the slide; the label is white (black on warning). Written as a flag, .primary, or by name, tone: .primary.

  • .primary: The theme's primary colour
  • .success: Green
  • .danger: Red
  • .warning: Amber, with black text
  • .info: Blue

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.

.primary

.success

.danger

.warning

.info

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-section-slide, stable across releases, so a stylesheet may target it.

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