InputOwnProps

Types

Link copied to clipboard
external interface SlotProps

Properties

Link copied to clipboard
abstract external var ariaDescribedBy: ElementId?
Link copied to clipboard
abstract external var ariaLabel: String?
Link copied to clipboard
abstract external var ariaLabelledBy: ElementId?
Link copied to clipboard
abstract external var autoComplete: String?

This prop helps users to fill forms faster, especially on mobile devices. The name can be confusing, as it's more like an autofill. You can learn more about it following the specification.

Link copied to clipboard
abstract external var autoFocus: Boolean?

If true, the input element is focused during the first mount.

Link copied to clipboard
abstract external override var className: ClassName?

Class name applied to the root element.

Link copied to clipboard
abstract external var endAdornment: ReactNode?

Trailing adornment for this input.

Link copied to clipboard
abstract external var error: Boolean?

If true, the input will indicate an error by setting the aria-invalid attribute on the input and the baseui--error class on the root element. The prop defaults to the value (false) inherited from the parent FormControl component.

Link copied to clipboard
abstract external var id: ElementId?

The id of the input element.

Link copied to clipboard
abstract external var key: Key?
Link copied to clipboard
abstract external var maxRows: Number?

Maximum number of rows to display when multiline option is set to true.

Link copied to clipboard
abstract external var minRows: Number?

Minimum number of rows to display when multiline option is set to true.

Link copied to clipboard
abstract external var multiline: Boolean

If true, a textarea element is rendered.

Link copied to clipboard
abstract external var name: String?

Name attribute of the input element.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract external var placeholder: String?

The short hint displayed in the input before the user enters a value.

Link copied to clipboard
abstract external var readOnly: Boolean?

It prevents the user from changing the value of the field (not from interacting with the field).

Link copied to clipboard
abstract external var rows: Int?

Number of rows to display when multiline option is set to true.

Link copied to clipboard
abstract external var slotProps: InputOwnProps.SlotProps?

The props used for each slot inside the Input.

Link copied to clipboard
abstract external var slots: InputSlots?

The components used for each slot inside the InputBase. Either a string to use a HTML element or a component.

Link copied to clipboard
abstract external var startAdornment: ReactNode?

Leading adornment for this input.

Link copied to clipboard
abstract external var type: InputType?

Type of the input element. It should be a valid HTML5 input type.

Link copied to clipboard
abstract external var value: Any?

The value of the input element, required for a controlled component.

Functions

Link copied to clipboard
open inline operator external fun Props?.unaryPlus()