# Textarea: Fixed size

> `autoResize={false}` keeps a fixed height with a vertical resize handle.

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

## Add this example

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

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

## Source

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

export function TextareaFixed() {
  return (
    <Textarea
      aria-label="Notes"
      autoResize={false}
      minRows={4}
      placeholder="Fixed height. Drag the corner to resize."
      className="max-w-sm"
    />
  )
}
```

## Props in this example

### Textarea

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `autoResize` | `boolean` | `true` | Grow with the text instead of a fixed height. |
| `minRows` | `number` | `3` |  |

## 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)
- [Rows](https://hextaui.com/docs/textarea/examples/rows.md)
- [States](https://hextaui.com/docs/textarea/examples/states.md)
- [Right to left](https://hextaui.com/docs/textarea/examples/rtl.md)
