Select

Form

Takes a block

Drop-down of Select.Option children.

Select(bind: …, value: …, label: …) { … }

Example

state plan = "free" Select(bind: plan, label: "Plan") { Select.Option("Free", value: "free") Select.Option("Team", value: "team") }

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

Props of Select
Prop Type Meaning
bind: State

State variable the control reads and writes (two-way)

value: Any

The control's value, when its state is not bound

label: String

Visible label; also the control's accessible name

hint: String

Help text under the control, linked to it by aria-describedby

error: String

Error text (a string; empty when there is none): announced as it appears and sets aria-invalid

disabled: Bool

Whether the control is inert

multiple: Bool

Allow several choices

Attribute families: global, aria, data, input. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.