{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "textarea-demo",
  "registryDependencies": [
    "https://ui-three-mu.vercel.app/r/textarea.json"
  ],
  "files": [
    {
      "path": "registry/preskok/examples/textarea-demo.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\n\nimport {\n  Description,\n  FieldError,\n  Label,\n} from \"@/components/ui/preskok-ui/field\"\nimport { TextField } from \"@/components/ui/preskok-ui/text-field\"\nimport { Textarea } from \"@/components/ui/preskok-ui/textarea\"\n\nexport default function TextareaDemo() {\n  const maxLength = 140\n  const [summary, setSummary] = useState(\n    \"Enterprise workspace renewal is ready for review.\"\n  )\n  const summaryIsTooLong = summary.length > maxLength\n\n  return (\n    <div className=\"grid w-full max-w-xl gap-5\">\n      <TextField\n        isInvalid={summaryIsTooLong}\n        value={summary}\n        onChange={setSummary}\n      >\n        <Label>Renewal summary</Label>\n        <Textarea\n          placeholder=\"Summarize the account state before the renewal call\"\n          maxLength={180}\n        />\n        <Description>\n          {summary.length}/{maxLength} characters recommended.\n        </Description>\n        <FieldError>\n          Keep the summary short enough for the account header.\n        </FieldError>\n      </TextField>\n\n      <TextField defaultValue=\"Procurement prefers annual billing. Legal has already approved the latest DPA.\">\n        <Label>Internal notes</Label>\n        <Textarea placeholder=\"Add handoff notes, risk signals, or next steps\" />\n        <Description>Visible to the customer success team only.</Description>\n      </TextField>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}