Skip to content

@jsvision/ui / InputOptions

Interface: InputOptions ​

Defined in: ui/src/controls/input.ts:33

Options for Input.

Properties ​

maxLength? ​

optional maxLength?: number

Defined in: ui/src/controls/input.ts:37

Maximum stored length. Default: unbounded.


placeholder? ​

optional placeholder?: string | Signal<string>

Defined in: ui/src/controls/input.ts:41

A muted hint shown while the bound value is empty; never part of the value. Static text or a signal.


validator? ​

optional validator?: Validator

Defined in: ui/src/controls/input.ts:39

A rule that filters keystrokes live and validates the completed value on focus-leave.


value ​

value: Signal<string>

Defined in: ui/src/controls/input.ts:35

The two-way bound text. Reading it renders the field; editing writes back. Required.