Hierarchy

Properties

autoComplete?: "on" | "off"

Whether or not the control supports auto complete

autoFocus?: boolean

Whether or not the control should start focused (default: false)

className?: string

CSS Class name for additional styles

defaultValue?: string | number | readonly string[]

Default value for the form control

disabled?: boolean

Whether or not the control is disabled (default: false)

error?: string

If set, indicates the control has an error and will display this prop as the error message

id?: string

Form control id

inlineMode?: boolean

Hide options not needed in the “inline” scenario

innerRef?: RefObject<HTMLInputElement>
isSet?: boolean

This property is only used in combination with type='password'.

Use this to signalize the textbox whether it should act like a value is already set, eventhough the actual value is empty. This is useful if the backend just indicates that a password is set, but doesn't give out the actual value.

label?: string

Form control label

name: string

Name of form control, required and must be unique from other form control names. This name should match the the name of the object corresponding to this control.

onBlur?: ((event) => void)

Type declaration

    • (event): void
    • Raised when the element has been selected

      Parameters

      • event: ChangeEvent<HTMLInputElement>

      Returns void

onChange?: ((event) => void)

Type declaration

    • (event): void
    • Raised when the value has changed

      Parameters

      • event: ChangeEvent<HTMLInputElement>

      Returns void

onFocus?: ((event) => void)

Type declaration

    • (event): void
    • Raised when the element has been de-selected

      Parameters

      • event: ChangeEvent<HTMLInputElement>

      Returns void

placeholder?: string

Input placeholder

tooltipContent?: ReactNode

A tooltip of additional information

type?: "number" | "text" | "password"

Input element type

value?: string | number | readonly string[]

Current value the form control has

Generated using TypeDoc