Input

Base input component for text-based form inputs.

Properties

NameTypeDefaultDescription
typeString'text'The input type (text, email, password, etc.).
valueString''The current value of the input.
placeholderString''Placeholder text displayed when input is empty.
requiredBooleanfalseWhether the input is required for form submission.
readOnlyBooleanfalseWhether the input is read-only.
multipleBooleanfalseWhether the input accepts multiple values (e.g., email).
minString''Minimum value for numeric or date inputs.
maxString''Maximum value for numeric or date inputs.
stepString''Step interval for numeric inputs.
minLengthNumber-1Minimum length for text inputs.
maxLengthNumber-1Maximum length for text inputs.
patternString''Regular expression pattern for validation.
autocompleteString''Autocomplete hint for the browser.
disabledBooleanfalseWhether the input is disabled (inherited from FormAssociated).

Methods

Inherits all standard HTMLElement and input methods.