Input
A versatile text input component that provides a consistent interface for text entry across different platforms. The Input component supports various types, validation states, and accessibility features.
Examples
(6)Properties
(80)Playground
Basic
Basic text input with label, placeholder, and value handling.
Variants
Four visual variants for the input shell:
default, filled, outline, and unstyled. The variant only changes the container fill and border — label, sections, and disclaimer stay consistent.Types
Set
type to switch the keyboard and browser behaviour — email, password, number, and tel are all supported.Validation
Pass
error to show a validation message, required to mark the field, and helperText for guidance. disabled blocks editing.Multiline Modes
Pair
multiline with minLines/maxLines to auto-expand, or with numberOfLines for a fixed height.Sections and slot styling
Render content inside the field with
startSection / endSection, and add clearable for a dismiss button. startSectionProps and endSectionProps accept any <View> props (including style) and apply them to the slot wrapper; placeholderTextColor overrides the muted default.Scan to open this page on your phonereact-ui-library.com/components/Input
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources