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
Dropdown
Textarea
Platforms
| iOS 26 | Android | |
|---|---|---|
| Native component | None: a form cell's text field with its prefix or unit | None: a Plex Android row's field with its prefix or unit |
| In a List row | The row is the frame; a prefix right before the value, a unit right after it, in the secondary label | The row is the frame; 16sp prefix and unit 4 from the value |
| On its own | An Input's frame with the addons inside it | The outlined field with the addons inside it |
API
InputGroup
| Prop | Type | Default | Description |
|---|---|---|---|
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 |
pill | boolean | false | Fully rounded frame |
disabled | boolean | false | Disables the control and the buttons inside |
invalid | boolean | false | Invalid frame; marks the control invalid |
style | StyleProp<ViewStyle> | — | Style of the root |
testID | string | — | 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
| Prop | Type | Default | Description |
|---|---|---|---|
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 |
style | StyleProp<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.