Skip to content

@jsvision/ui / InputBoxOptions

Interface: InputBoxOptions

Defined in: ui/src/dialog/message-box.ts:40

Options for inputBox.

Properties

label

label: string

Defined in: ui/src/dialog/message-box.ts:44

Label shown above the field (supports ~X~ hotkey markup).


title

title: string

Defined in: ui/src/dialog/message-box.ts:42

Title centered in the top border.


validator?

optional validator?: Validator

Defined in: ui/src/dialog/message-box.ts:48

Optional validator; OK is gated by the dialog's valid() sweep, which refocuses an invalid field.


value

value: Signal<string>

Defined in: ui/src/dialog/message-box.ts:46

The two-way value signal the field reads and writes.