UseInputReturnValue

external interface UseInputReturnValue(source)

Properties

Link copied to clipboard
abstract external var disabled: Boolean

If true, the component will be disabled.

Link copied to clipboard
abstract external var error: Boolean

If true, the input will indicate an error by setting the aria-invalid attribute.

Link copied to clipboard
abstract external var focused: Boolean

If true, the input will be focused.

Link copied to clipboard
abstract external var formControlContext: Any?

Return value from the useFormControlContext hook.

Link copied to clipboard
abstract external var getInputProps: (externalProps: Props?) -> Props

Resolver for the input slot's props.

Link copied to clipboard
abstract external var getRootProps: (externalProps: Props?) -> Props

Resolver for the root slot's props.

Link copied to clipboard
abstract external var inputRef: RefCallback<HTMLInputElement>?
Link copied to clipboard
abstract external var required: Boolean

If true, the input will indicate that it's required.

Link copied to clipboard
abstract external var value: Any

The value of the input element.