Reference

Spinner

Loading indicator, announced as a status.

Spinner(size: Enum)

Before 5.0

size

Example

wf

Row(gap: .lg, align: .center) { Spinner.sm Spinner Spinner.lg }

Beside what is loading

wf

Row(gap: .sm, align: .center) { Spinner.sm Text("Loading deploys…").muted }

Props

Props of Spinner
PropTypeUnsetMeaning

size:

one of its cases

md

Its diameter. Written as a flag, .sm, or by name, size: .sm.

  • .sm: 16px
  • .md (the default): 24px, the default
  • .lg: 40px

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.

.sm

.md

.lg

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