Text area
Auto-resizing textarea with minimal styling. Fits inside node bodies and property panels.
Install
npx shadcn@latest add https://substrate.georgedrury.co.uk/r/text-areaExamples
Default
"use client"
import { useState } from "react"Props
Extends all native <textarea> props.
| Prop | Type | Default | Description |
|---|---|---|---|
autoResize | boolean | true | Automatically adjusts height to content |
minRows | number | 2 | Minimum visible rows |
maxRows | number | 10 | Maximum height before scrolling |