T

InputRowProps

Props for InputRow.

type InputRowProps = { … }

Members

disabled?boolean

Draws the input greyed out and ignores typing.

The keyboard the input opens; default when omitted.

labelstring

The input's label.

The most characters the input takes.

onChange(text: string) => void

Called with the typed text when editing ends and validate accepts it.

Text shown while the input is empty.

subLabel?string

Text shown under the input; none when omitted.

validate?(text: string) => string | undefined

Returns why the typed text cannot be saved, or undefined when it can.

valuestring

The saved text; the input follows it whenever it changes.

text is one line, multiline grows with its text, secret hides what is typed.