Float Input

Input with floating label that animates on focus

import { FloatingLabelInput } from "@plexui/ui/components/FloatingLabelInput";

Examples

Overview

Filled state

Textarea

multiline

With error message

With description

We'll never share your email with anyone else.

With description and error

We'll never share your email with anyone else.

Clear button

Disabled

Read only

All states

Empty
Filled
Invalid
Disabled
Read only

Password input

Password with visibility toggle

SSN input

Birthday input

Birthday with validation

Birthday states

Empty
Filled
Invalid
Disabled

Select

Country select

Phone input

+34

Reference

PropTypeDefaultDescription
labelstringFloating label text
descriptionReactNodeHelper text below the input
errorMessagestringValidation message below input; sets invalid state
disabledbooleanfalseDisable input interactions
invalidbooleanfalseInvalid visual state
readOnlybooleanfalseRead-only input state
onClear() => voidShows a clear button when input has value
startAdornmentReactNodeContent rendered before the input, inside the field. Visible when focused or has value.
endAdornmentReactNodeContent rendered after the input, before the clear button
multilinebooleanfalseRender as an auto-growing textarea
rowsnumber2Initial visible text lines when multiline is true