Skip to content
  • Android
  • iOS
  • Web

Input

An Input component is a user interface element that allows users to enter data, such as text, numbers, or selections. It typically includes various types, such as text fields, checkboxes, radio buttons, and dropdowns, providing flexibility for different data types. Input components are essential for forms and interactive applications, enabling users to submit information effectively and efficiently.

Live examples

Example.tsx

Attributes

NInput attributes
NameTypeDefaultDetails
idstringOptional
labelstringOptionalVisible label above the input.
labelClassNamestringOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
containerClassNamestringOptionalClasses for the field container.
errorstringOptionalAn error message shown below the field.
helperTextstringOptionalA hint shown below the field.
onChange((value: ComponentTextChange) => void)Optional
onChangeText((value: string) => void)Optional
valuestringOptional
defaultValuestringOptional
placeholderstringOptional
disabledbooleanOptional
typestringOptional
Engine reference for InputSet up engine components

Tags