Skip to content

CheckboxOptions

Defined in: components/checkbox.ts:6

Options for checkbox.

optional label?: Slot

Defined in: components/checkbox.ts:8

The label shown next to the box. Required for a meaningful checkbox.


optional bind?: Bindable<boolean>

Defined in: components/checkbox.ts:10

Two-way binding target holding a boolean.


optional checked?: boolean

Defined in: components/checkbox.ts:12

Static initial checked state.


optional change?: (event) => void

Defined in: components/checkbox.ts:14

Fired on change with the native event.

Event

void


optional attrs?: string

Defined in: components/field.ts:14

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

FieldOptions.attrs


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