Skip to Content
ARCUI

InputArea

Multiline ARCUI text input with auto-growing field surface, character count, validation, and native TextInput ownership.

InputArea preserves React Native controlled/uncontrolled ownership while adding ARCUI multiline field behavior.

Controlled

const [bio, setBio] = useState("");

<InputArea
  label="Bio"
  value={bio}
  onChangeText={setBio}
  maxLength={240}
/>

Uncontrolled

<InputArea
  label="Notes"
  defaultValue="Initial note"
/>

A mounted InputArea must not switch between controlled and uncontrolled ownership.

Auto-growing height

ARCUI reads the native contentSize and grows the field surface between resolved minimum and maximum heights.

<InputArea minHeight={120} maxHeight={260} />

Invalid values or minHeight > maxHeight fall back safely to the configured InputArea sizing tokens.

Font scale does not blindly multiply the container height; the native content size drives the actual field growth.

Character count

showCharCount defaults to true.

<InputArea
  value={message}
  onChangeText={setMessage}
  maxLength={500}
  showCharCount
/>

Character count is presentation inside InputArea; there is no public standalone InputCharCount component.

Use native maxLength when the field has a real character limit.

State

disabled is the fully disabled state. active={false} is ARCUI's inactive presentation and also prevents editing.

Native escape hatches

InputArea inherits supported native TextInputProps while ARCUI owns multiline, scrolling, font-scaling, and field-geometry behavior that would otherwise conflict with the component contract.

Testing

Use testID where the public component contract exposes it so application tests can target the ARCUI-owned root without depending on visual implementation details. Component-specific stable descendants may use documented suffixes.

For provider setup and the dedicated react-native-arc-ui/testing entrypoint, see Testing.

API Reference

Also inherits: TextInputProps

PropTypeDefaultDescription
ref?Ref<TextInput>—React 19 ref-as-prop.
label?string——
error?string——
disabled?booleanfalseFully disabled semantic state.
active?booleantrueWhether the field is currently active in the interaction flow. active=false prevents editing and uses ARCUI's inactive presentation without representing the field as fully disabled.
showCharCount?booleantrueWhether the character count is rendered below the field. When enabled, the counter is always present, including at zero characters.
minHeight?number—Minimum height of the complete textarea field surface. Defaults to tokens.sizings.inputArea.minHeight.
maxHeight?number—Maximum height of the complete textarea field surface before native scrolling takes over. Defaults to tokens.sizings.inputArea.maxHeight.
style?StyleProp<ViewStyle>—Root field style. Use inputStyle for the native TextInput itself.
inputStyle?StyleProp<TextStyle>——
testID?string—Applied to the ARCUI field root. Internal elements receive stable suffixes.

Generated from the ARCUI 1.1.x TypeScript source snapshot. Native inherited props remain available through the referenced React Native surface.

The generated table above covers ARCUI-owned public props from the source-aligned type snapshot. Native inherited surfaces remain available where the public type extends React Native props.

Motion

Focus/error/active presentation and content-height changes are coordinated without driving animation frames from React. Native content size remains the source for auto-growing layout.

See Motion for the library-wide model.

Performance

Keep application semantics at normal React update cadence. ARCUI components avoid using React state as a frame-by-frame animation driver; use the component callbacks and let Reanimated own continuous visual work.

See Performance for broader guidance.

Accessibility

ARCUI uses native roles, labels, semantic accessibility state, centralized font scaling, and localizable ARCUI-owned strings where the component owns behavior text. Consumer accessibility overrides remain available when they do not conflict with component correctness.

See Accessibility for the library-wide model.

Theming

This component resolves its normal presentation from ARCUI tokens and active theme context. Prefer token configuration for system-wide design changes and component props for genuine instance-level exceptions.

Relevant token areas include:

colors.*.inputArea
sizings.inputArea
radius.inputArea
border.inputArea
typography.inputArea
animations

Top-level token overrides are shallow. Compose changed built-in namespaces from defaultTokens rather than relying on recursive merge behavior.

See Tokens and Theming.

Try it live

Open the existing React Native Snack to explore InputArea interactively.

Open in Expo Snack ↗

On this page