Skip to content

@jsvision/ui / InputBoxOptions

Interface: InputBoxOptions

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

Options for inputBox.

Properties

label

label: string

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

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


placeholder?

optional placeholder?: string | Signal<string>

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

A muted hint shown in the prompt field while it is empty; never part of the value.


title

title: string

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

Title centered in the top border.


validator?

optional validator?: Validator

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

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:52

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