# @gluestack-ui/textarea

> A universal headless text-area component for React Native, Next.js & React

Latest version **0.1.25** (published 2025-04-08) · 0 weekly downloads

## Install

```sh
npm install @gluestack-ui/textarea
pnpm add @gluestack-ui/textarea
yarn add @gluestack-ui/textarea
bun add @gluestack-ui/textarea
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.25 |
| Published | 2025-04-08 |
| First published | 2023-02-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5308 |
| Maintainers | vidhi499, rohit_singh, viraj-10, rayan1810, rajat693, surajahmedc, meenumakkar, madhavb230100, vaibhk002, daminipandey, amars29, geekgautam, sravankumarvelangi, gluestackadmin, geekashwini, mayankp06 |
| Keywords | react, native, react-native, textarea, text-area, gluestack-ui, universal, headless, typescript, component, android, ios, nextjs |

## Links

- npm: https://www.npmjs.com/package/@gluestack-ui/textarea
- Repository: https://github.com/gluestack/gluestack-ui
- Homepage: https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/textarea#readme
- Issues: https://github.com/gluestack/gluestack-ui/issues
- npm.io page: https://npm.io/package/@gluestack-ui/textarea

## Dependencies (4)

- [@gluestack-ui/utils](https://npm.io/package/@gluestack-ui/utils.md) ^0.1.14
- [@react-native-aria/focus](https://npm.io/package/@react-native-aria/focus.md) ^0.2.9
- [@gluestack-ui/form-control](https://npm.io/package/@gluestack-ui/form-control.md) ^0.1.19
- [@react-native-aria/interactions](https://npm.io/package/@react-native-aria/interactions.md) ^0.2.16

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.25 (latest) — 2025-04-08
- 0.1.24 — 2024-11-11
- 0.1.23 — 2024-07-08
- 0.1.22 — 2024-06-13
- 0.1.21 — 2024-04-03
- 0.1.20 — 2024-02-12
- 0.1.19 — 2023-11-27
- 0.1.18 — 2023-10-20
- 0.1.17 — 2023-10-19
- 0.1.16 — 2023-10-19
- 0.1.15 — 2023-10-17
- 0.1.14 — 2023-09-28
- 0.1.13 — 2023-09-08
- 0.1.12 — 2023-08-10
- 0.1.11 — 2023-06-29
- … 12 more at https://npm.io/package/@gluestack-ui/textarea/versions

## README

# @gluestack-style/textarea

## Installation

To use `@gluestack-ui/textarea`, all you need to do is install the
`@gluestack-ui/textarea` package:

```sh
$ yarn add @gluestack-ui/textarea

# or

$ npm i @gluestack-ui/textarea
```

## Usage

The Textarea component is designed to accommodate larger amounts of text input. It allows multi-line input and can be easily customized to fit the user's needs. Here's an example how to use this package to create one:

```jsx
import { Root, Input } from '../components/core/text-area/styled-components';
import { createTextarea } from '@gluestack-ui/textarea';
const Textarea = createTextarea({
  Root,
  Input,
});
```

## Customizing the textarea:

Default styling of all these components can be found in the components/core/textarea file. For reference, you can view the [source code](https://github.com/gluestack/gluestack-ui/blob/development/example/storybook/src/ui-components/Textarea/index.tsx) of the styled `textarea` components.

```jsx
// import the styles
import { Root, Input } from '../components/core/text-area/styled-components';

// import the createTextarea function
import { createTextarea } from '@gluestack-ui/textarea';

// Understanding the API
const Textarea = createTextarea({
  Root,
  Input,
});

// Using the textarea component
export default () => (
  <Textarea>
    <TextareaInput placeholder="your text goes here..." />
  </Textarea>
);
```

More guides on how to get started are available
[here](https://ui.gluestack.io/docs/components/forms/text-area).

---
_Source: https://npm.io/package/@gluestack-ui/textarea · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
