From 53fa60f1a080f9407a3682574875ef1f3aeb577f Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 17 Apr 2026 21:19:00 +0000 Subject: [PATCH] Switch to version 2: added registry/components/Textarea.json --- registry/components/Textarea.json | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 registry/components/Textarea.json diff --git a/registry/components/Textarea.json b/registry/components/Textarea.json new file mode 100644 index 0000000..f590c6a --- /dev/null +++ b/registry/components/Textarea.json @@ -0,0 +1,36 @@ +{ + "name": "Textarea", + "description": "Styled textarea field with secondary-button styling and rounded-theme-capped borders.", + "details": "Use for multi-line text input in forms. Features secondary-button background styling, customizable row height, resize disabled, and focus states. Includes disabled state with reduced opacity. Ideal for messages, comments, or longer text content.", + "constraints": { + "textRules": { + "placeholder": { + "required": false, + "example": "Type your message...", + "minChars": 2, + "maxChars": 100 + } + } + }, + "propsSchema": { + "value": "string (required)", + "onChange": "(value: string) => void (required)", + "placeholder?": "string", + "rows?": "number (default: 5)", + "required?": "boolean (default: false)", + "disabled?": "boolean (default: false)", + "ariaLabel?": "string", + "className?": "string" + }, + "usageExample": "