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 26Android
Native componentText field in a form cell (no floating label)Text field, outlined, with a floating label
LookA cell named by its placeholder; the error inside it, the description in the footerAn 8dp outlined field; the label springs from 16 to 12sp onto the line; 14sp help under it

API

PropTypeDefaultDescription
labelstring—The field's name: the floating label on Android, the cell's placeholder on iOS (required)
valuestring—Controlled text
defaultValuestring—Initial text (uncontrolled)
onChangeText(text: string) => void—Called with the text on every change
errorMessagestring—Error message under the field (on iOS inside the cell)
invalidbooleanfalse (or true if errorMessage is provided)Marks the field invalid
descriptionReactNode—Helper text under the field (on iOS the cell's footer)
disabledbooleanfalseDims the field and takes no input
readOnlybooleanfalseKeeps 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
revealablebooleantrue when type="password" and no endAdornmentThe built-in eye that shows or hides the value
onRevealedChange(revealed: boolean) => void—Called with the new state each time the eye is pressed
multilinebooleanfalseSeveral lines
rowsnumber2Lines 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
pillboolean—A capsule (the web's default); Android keeps the 8dp corners unless it is set
startAdornmentReactNode—Content before the text
endAdornmentReactNode—Content after the text, before the eye
styleStyleProp<ViewStyle>—Style of the root
testIDstring—Test id

Every other prop of React Native's TextInput passes through (autoComplete, maxLength, onFocus, onBlur and so on).