Input Group

A text field with addons around its value, such as a prefix, a unit, a menu or a button.

import { InputGroup } from "@plexui/react-native"

Examples

Overview

Text

Button

Textarea

Platforms

iOS 26Android
Native componentNone: a form cell's text field with its prefix or unitNone: a Plex Android row's field with its prefix or unit
In a List rowThe row is the frame; a prefix right before the value, a unit right after it, in the secondary labelThe row is the frame; 16sp prefix and unit 4 from the value
On its ownAn Input's frame with the addons inside itThe outlined field with the addons inside it

API

InputGroup

PropTypeDefaultDescription
size"3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl""md"Control height, on the same scale as Input
variant"outline" | "soft""outline"Visual style of the frame
pillbooleanfalseFully rounded frame
disabledbooleanfalseDisables the control and the buttons inside
invalidbooleanfalseInvalid frame; marks the control invalid
styleStyleProp<ViewStyle>—Style of the root
testIDstring—Test id

InputGroup.Input

The group's text field, without a frame of its own: every Input prop except variant, size, pill and the adornments, which the group sets. disabled and invalid default to the group's state.

InputGroup.Textarea

The same with several lines: rows (3 by default), autoResize and maxRows, as Textarea.

InputGroup.Addon

PropTypeDefaultDescription
align"inline-start" | "inline-end" | "block-start" | "block-end""inline-start"Before or after the control on its line, or a row above or below it
styleStyleProp<ViewStyle>—Style of the addon

InputGroup.Button

Takes the Button props except size, which follows the group. color defaults to "secondary", variant to "ghost", and disabled to the group's value. A ghost uniform button is the field's adornment button.

InputGroup.Text

A Text for a prefix, a unit or a counter inside an addon, in the secondary label. Every Text prop passes through.