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-area

Examples

Default

"use client"

import { useState } from "react"

Props

Extends all native <textarea> props.

PropTypeDefaultDescription
autoResizebooleantrueAutomatically adjusts height to content
minRowsnumber2Minimum visible rows
maxRowsnumber10Maximum height before scrolling