Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { Textarea } from "@/components/ui/textarea";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| label Rests on the first line, floats onto the border on focus. | string | — |
| floatingLabel Set to false to put the label above the field as static text (no notch); placeholder shows inside. | boolean | true |
| variant Field style. | "outlined" | "filled" | "outlined" |
| size 14 / 16 / 18px text; line height and padding scale too. | "sm" | "md" | "lg" | "md" |
| minRows / maxRows Grows smoothly between these, then scrolls. | number | 3 / 8 |
| maxLength Character limit; enables the counter. | number | — |
| enforceMaxLength false makes the limit soft: typing past it turns the counter red and negative. | boolean | true |
| showCount Counter that becomes a ring in the last 20%. | boolean | true when maxLength |
| toolbar Row inside the bottom edge — attach, emoji, send. | ReactNode | — |
| error Red state, icon + message that slides in, one shake. | string | — |
| success Green border + animated check; a string is shown as the message. | boolean | string | — |
| helper Hint under the field. | string | — |
| accent Focus border and halo colour. | string | theme accent |
| surface Colour behind the field (paints the label notch). | string | theme background |
| style Style for the outer wrapper around the field and footer (the one that shakes). | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| fieldStyle The bordered box: background, border width / colour, radius, height, padding. Wins over the computed style; a borderColor replaces the resting border only (focus, error and success colours still show). height is ignored: the box grows with minRows / maxRows. | StyleProp<ViewStyle> | — |
| inputStyle The typed text — fontSize, lineHeight, fontWeight, color, fontFamily. Row height follows lineHeight (or scales with fontSize). | StyleProp<TextStyle> | — |
| labelStyle Label in both modes (floating and above). color is the resting colour — focus (accent), error and success still take over; fontSize sets the resting size, it floats at the same ratio and the notch follows its width. | StyleProp<TextStyle> | — |
| messageStyle Helper / error / success text. color applies to the helper; error and success keep their tone colour. | StyleProp<TextStyle> | — |
| counterStyle Counter text (42/280 and the characters-left number); warning / danger still win near the limit. | StyleProp<TextStyle> | — |
| placeholderTextColor Placeholder colour. | string | theme mutedForeground |
| …TextInputProps value, defaultValue, onChangeText, placeholder, … |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — "outlined" | "filled".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "outlined" | "filled" · default "outlined"Field style.
- size
- "sm" | "md" | "lg" · default "md"14 / 16 / 18px text; line height and padding scale too.
- accent
- string · default theme accentFocus border and halo colour.
- surface
- string · default theme backgroundColour behind the field (paints the label notch).
- style
- StyleProp<ViewStyle>Style for the outer wrapper around the field and footer (the one that shakes).
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
- fieldStyle
- StyleProp<ViewStyle>The bordered box: background, border width / colour, radius, height, padding. Wins over the computed style; a borderColor replaces the resting border only (focus, error and success colours still show). height is ignored: the box grows with minRows / maxRows.
- inputStyle
- StyleProp<TextStyle>The typed text — fontSize, lineHeight, fontWeight, color, fontFamily. Row height follows lineHeight (or scales with fontSize).
- labelStyle
- StyleProp<TextStyle>Label in both modes (floating and above). color is the resting colour — focus (accent), error and success still take over; fontSize sets the resting size, it floats at the same ratio and the notch follows its width.
- messageStyle
- StyleProp<TextStyle>Helper / error / success text. color applies to the helper; error and success keep their tone colour.
- counterStyle
- StyleProp<TextStyle>Counter text (42/280 and the characters-left number); warning / danger still win near the limit.
- placeholderTextColor
- string · default theme mutedForegroundPlaceholder colour.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Motion
- The box grows smoothly between minRows and maxRows as you type; the label floats up on focus and a halo glows around the field.
- Screen readers
- The input is labelled by label or placeholder; the counter reads like '42 of 200 characters left' and error / success messages land in a polite live region.
- Web
- The browser focus outline is removed; the field draws its own focus halo.
Source
FAQ
How do I make a multiline text input in React Native?
npx @expokit/cli@latest add textarea in your Expo or React Native project and it copies a ready-made multiline text input into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Textarea work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Textarea to my Expo app?
npx @expokit/cli@latest add textarea in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.Is Textarea free?
Can I change how Textarea looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.