Skip to main content
A native input element that automatically works with Field.

Import

Basic Usage

Key Features

  • Seamless integration with Field component
  • Controlled and uncontrolled modes
  • Full native input element support
  • Automatic validation integration
  • Custom value change handler

Key Props

value

Type: string The value of the input. Use with onValueChange for controlled mode.

defaultValue

Type: string The default value of the input. Use for uncontrolled mode.

onValueChange

Type: (value: string, eventDetails: ChangeEventDetails) => void Callback fired when the value changes.

All Native Input Props

The Input component accepts all standard HTML input attributes:
  • type - Input type (text, email, password, etc.)
  • placeholder - Placeholder text
  • disabled - Whether the input is disabled
  • required - Whether the input is required
  • maxLength - Maximum length
  • And all other native input props

Styling

Common Patterns

With Field Component

Different Input Types

With Icons

Controlled with Validation

With Character Count