Input
Forms

Input.

A clean, accessible input with shared focus behavior.

Real interactive component
Live demo

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

8 props
ParameterTypeRequiredDefaultPossible valuesDescription
typeHTMLInputTypeAttributeNotexttext · email · password · number · date · search · url · tel · timeNative input type, e.g. text, email, number, date.
valuestring | numberNo——Controlled input value.
defaultValuestring | numberNo——Initial uncontrolled value.
placeholderstringNo——Placeholder while empty.
disabledbooleanNofalsetrue · falseDisable editing.
requiredbooleanNofalsetrue · falseRequire a value for native form submission.
onChangeChangeEventHandler<HTMLInputElement>No——Called when the input changes.
aria-labelstringNo——Accessible label when a visible label is not supplied.