Float Input
A text field named by a label that floats into its frame on Android and names its cell on iOS.
import { FloatingLabelInput } from "@plexui/react-native"Examples
Overview
Text fields
Everything that is typed: more than one line, or a password. Values with a mask, such as an SSN or a birthday, are on the Input page.
Textarea
Password input
Selects
React Native has no floating-label select: a Select alone in a label-hidden row is its cell, named by its placeholder.
Select
Platforms
| iOS 26 | Android | |
|---|---|---|
| Native component | Text field in a form cell (no floating label) | Text field, outlined, with a floating label |
| Look | A cell named by its placeholder; the error inside it, the description in the footer | An 8dp outlined field; the label springs from 16 to 12sp onto the line; 14sp help under it |
API
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | The field's name: the floating label on Android, the cell's placeholder on iOS (required) |
value | string | — | Controlled text |
defaultValue | string | — | Initial text (uncontrolled) |
onChangeText | (text: string) => void | — | Called with the text on every change |
errorMessage | string | — | Error message under the field (on iOS inside the cell) |
invalid | boolean | false (or true if errorMessage is provided) | Marks the field invalid |
description | ReactNode | — | Helper text under the field (on iOS the cell's footer) |
disabled | boolean | false | Dims the field and takes no input |
readOnly | boolean | false | Keeps the value and hides the clear button |
onClear | () => void | — | Shows a clear button while the field has a value |
type | "text" | "password" | "email" | "tel" | "url" | "number" | "text" | The kind of value: password hides it, the others bring their keyboard |
revealable | boolean | true when type="password" and no endAdornment | The built-in eye that shows or hides the value |
onRevealedChange | (revealed: boolean) => void | — | Called with the new state each time the eye is pressed |
multiline | boolean | false | Several lines |
rows | number | 2 | Lines of a multiline field (Android; the iOS cell grows from one) |
labelPlacement | "border" | "inside" | "border" | Android: the label floats onto the outline, or to the top of a filled box |
pill | boolean | — | A capsule (the web's default); Android keeps the 8dp corners unless it is set |
startAdornment | ReactNode | — | Content before the text |
endAdornment | ReactNode | — | Content after the text, before the eye |
style | StyleProp<ViewStyle> | — | Style of the root |
testID | string | — | Test id |
Every other prop of React Native's TextInput passes through (autoComplete, maxLength, onFocus, onBlur and so on).