# Textarea: Rows

> `minRows` and `maxRows` set where growing starts and stops.

Example: https://hextaui.com/docs/textarea/examples/rows
Component docs: https://hextaui.com/docs/textarea.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/textarea-rows.json
```

This adds `components/examples/textarea/rows.tsx` with the Textarea component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/textarea/rows.tsx"
import { Textarea } from "@/components/ui/textarea"

export function TextareaRows() {
  return (
    <div className="grid w-full max-w-md gap-4 sm:grid-cols-2">
      <Textarea
        aria-label="One to four rows"
        minRows={1}
        maxRows={4}
        placeholder="1–4 rows"
      />
      <Textarea
        aria-label="Five to fifteen rows"
        minRows={5}
        maxRows={15}
        placeholder="5–15 rows"
      />
    </div>
  )
}
```

## Props in this example

### Textarea

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `minRows` | `number` | `3` |  |
| `maxRows` | `number` | `10` |  |

## More Textarea examples

- [Send with a shortcut](https://hextaui.com/docs/textarea/examples/submit.md)
- [Character count](https://hextaui.com/docs/textarea/examples/counter.md)
- [Fixed size](https://hextaui.com/docs/textarea/examples/fixed.md)
- [States](https://hextaui.com/docs/textarea/examples/states.md)
- [Right to left](https://hextaui.com/docs/textarea/examples/rtl.md)
