Files
fn_registry/frontend/functions/ui/textarea.md
T
egutierrez cfdf515228 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

68 lines
1.7 KiB
Markdown

---
name: textarea
kind: component
lang: ts
domain: ui
version: "1.0.0"
purity: impure
signature: "Textarea(props: TextareaProps): JSX.Element"
description: "Input multilinea accesible con auto-resize opcional. Mantine Textarea con autosize."
tags: [textarea, component, ui, interactive, form, mantine, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: ["@mantine/core"]
output: "Componente Textarea que renderiza input multilinea accesible con auto-resize opcional"
tested: false
tests: []
test_file_path: ""
file_path: "frontend/functions/ui/textarea.tsx"
props:
- name: autoResize
type: "boolean"
required: false
description: "Ajusta la altura automaticamente al contenido (default: false)"
- name: placeholder
type: "string"
required: false
description: "Texto placeholder"
- name: disabled
type: "boolean"
required: false
description: "Deshabilita el textarea"
- name: rows
type: "number"
required: false
description: "Numero de filas visibles iniciales"
- name: className
type: "string"
required: false
description: "Clases CSS adicionales"
emits: [onChange, onFocus, onBlur]
has_state: false
framework: react
variant: []
---
## Ejemplo
```tsx
// Basico
<Textarea placeholder="Escribe aqui..." rows={4} />
// Con auto-resize
<Textarea autoResize placeholder="Crece automaticamente..." />
// Controlado
<Textarea value={text} onChange={(e) => setText(e.target.value)} />
// Con validacion
<Textarea aria-invalid={!!error} />
```
## Notas
Usa Mantine Textarea con autosize nativo (reemplaza el auto-resize manual anterior). forwardRef mantenido para compatibilidad con form libraries.