Back to docs
Component

Input Field

Input field with floating label and animated focus state.

Install

npx shadcn@latest add @native-bits/input-field

Dependencies

react-native-reanimated
Try in Sandbox
formsinputmobile

Props

PropTypeDefaultDescription
labelstring-Field label
valuestring-Current value
onChangeText(text: string) => void-Change callback
errorstring-Validation message

Usage

```tsx
import { input-field } from '@/components/native-bits/input-field'

<InputField label="Email" value={email} onChangeText={setEmail} />
```

Source code

Loading...