Egbe Lajo
COMPONENT

Input

Text input for forms with label, hint, error, and icon support.

Default

<Input
  label="Nome completo"
  placeholder="Ex: Maria dos Santos"
  name="name"
/>

With Hint

Opcional — deixe em branco se nao foi iniciado

Error State

Sizes

Disabled

API Reference

PropTypeDefaultDescription
labelstringLabel text above the input
hintstringHelp text below the input
errorstringError message (replaces hint, adds red border)
size"sm" | "md" | "lg""md"Input height
leftIconReactNodeIcon on the left side
rightIconReactNodeIcon on the right side

Also accepts all standard HTMLInputElement props.

React Native

Mobile uses TextInput with a focus border highlight (2px primary border). Supports keyboardType, autoCapitalize, and other native props.

Mobile usage
import { Input } from "@/components/mobile";

<Input
  label="E-mail"
  placeholder="maria@exemplo.com"
  keyboardType="email-address"
  autoCapitalize="none"
  value={email}
  onChangeText={setEmail}
  error={errors.email}
/>