examples/text-area-auto-grow.tsx
1"use client";23import * as React from "react";4import { Textarea } from "@/components/wensity/text-area";56export function TextareaAutoGrow() {7 const [value, setValue] = React.useState(8 "Auto-grow keeps short notes compact, then expands until the configured maximum row count.",9 );1011 return (12 <Textarea13 label="Brief"14 value={value}15 onChange={(event) => setValue(event.target.value)}16 autoResize17 minRows={3}18 maxRows={8}19 hint="Try adding more lines; the field grows without layout jumps."20 />21 );22}