Kinetik UI

Grow Area

.md

A multi-line field that springs taller a line at a time, with a ring that fills towards the character limit.

v1.0.0Live on web@shopify/react-native-skiareact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add grow-area

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/grow-area.json

Install manually

  1. Install dependencies
    npx expo install @shopify/react-native-skia react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/grow-area.tsx
    View source files

Usage

import { GrowArea } from '@/components/kinetik/grow-area';

<GrowArea
  label="About you"
  placeholder="A line or two about yourself"
  value={bio}
  onChangeText={setBio}
  maxLength={160}
  maxLines={6}
/>;

When to use

  • Free text whose length varies a lot: a bio, a comment, a note to the seller.
  • Text with a hard limit people should see coming before they hit it.

When not to use

  • A single line such as a name or an email. Use Float Field.
  • Long documents. Use a dedicated editor screen.

Notes

  • The field starts at minLines, springs taller a line at a time and scrolls once it reaches maxLines.
  • With maxLength a ring fills towards the limit; the number of characters left appears in the last 20 and turns red at zero.
  • Every other TextInput prop is passed through.

Props

GrowAreaProps

PropTypeDefaultDescription
labelrequiredstring—Shown above the field and used as its accessible name.
valuerequiredstring—
onChangeTextrequired(text: string) => void—
maxLengthnumber—A hard limit. A ring fills towards it and the count of characters left appears near the end.
minLinesnumber3Height when empty, in lines. Defaults to 3.
maxLinesnumber8The field stops growing and scrolls past this many lines. Defaults to 8.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
A native text input in a box whose height springs; the ring is a tiny Skia canvas with one trimmed arc. Nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.94× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 143 MB app memory. Measured while typing three long lines and deleting them; the keyboard stays open.

Real-device measurement pending.

Accessibility

Reduced motion
The field resizes and the ring fills without springs.
Screen readers
A multi-line text field named by its label, plus a count of characters left.
Touch target
The whole field is the target, at least three lines tall.

Source files

components/kinetik/grow-area.tsx is in the Code tab of the preview above.