Initial commit
This commit is contained in:
35
registry/components/Textarea.json
Normal file
35
registry/components/Textarea.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "Textarea",
|
||||
"description": "Styled textarea field with secondary-button styling and rounded-theme-capped borders.",
|
||||
"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": "<Textarea value={message} onChange={(value) => setMessage(value)} placeholder=\"Type your message...\" rows={5} required />",
|
||||
"do": [
|
||||
"Use for feature showcases",
|
||||
"Use for capability displays"
|
||||
],
|
||||
"dont": [],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user