Skip to content
  • Android
  • iOS
  • Web

Input

Collect a single line of text.

Engine API NInputnayan-ui/components

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
React Native API

React Native attributes

NInput react native 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: string) => void)Optional
onChangeText((value: string) => void)Optional
valuestringOptional
defaultValuestringOptional
placeholderstringOptional
disabledbooleanOptional
typestringOptional

Tags