Skip to content

SelectOptions

Defined in: components/select.ts:9

Options for select.

optional attrs?: string

Defined in: components/field.ts:14

Aberdeen attr/style string applied to the field’s wrapper element.

FieldOptions.attrs


optional label?: Slot

Defined in: components/field.ts:16

Visible label, associated with the control via for/id for a11y.

FieldOptions.label


optional help?: Slot

Defined in: components/field.ts:18

Helper text shown beneath the control.

FieldOptions.help


optional error?: string

Defined in: components/field.ts:23

Error message shown beneath the control. When set, the control is marked aria-invalid and styled accordingly. May be reactive.

FieldOptions.error


optional disabled?: boolean

Defined in: components/field.ts:25

Disables the control.

FieldOptions.disabled


optional required?: boolean

Defined in: components/field.ts:27

Marks the field required (adds a * and the aria-required attribute).

FieldOptions.required


optional name?: string

Defined in: components/field.ts:29

The name attribute, for native form submission.

FieldOptions.name


optional id?: string

Defined in: components/field.ts:31

Explicit id for the control; auto-generated when omitted.

FieldOptions.id


optional inputAttrs?: string

Defined in: components/field.ts:33

Aberdeen attr/style string applied to the control (input) element itself.

FieldOptions.inputAttrs


options: SelectOptionInput[] | (() => SelectOptionInput[])

Defined in: components/select.ts:11

The list of selectable options.


optional bind?: Bindable<string>

Defined in: components/select.ts:13

Two-way binding for the selected value string ("" when nothing is selected).


optional placeholder?: string

Defined in: components/select.ts:15

Placeholder option shown when nothing is selected yet.