API Reference
Complete API documentation for components, utilities, and framework core
TextArea
Multi-line text input with auto-resize and character counting
🔧 Props
| Property | Type | Default | Description |
|---|---|---|---|
| id | string | textarea-{timestamp} | Unique identifier |
| label | string | undefined | Label text above textarea |
| value | van.state<string> | undefined | Textarea value (NOT auto-bound) |
| message | object | {code: "", detail: ""} | Validation message |
| rows | number | browser default | Number of visible text rows |
| maxLength | number | undefined | Maximum character count |
| autoResize | boolean | false | Enable auto-resize on input |
| required | boolean | false | Required field indicator |
| oninput | function | undefined | Input change handler |
💻 Examples
Basic TextArea
javascript•Basic TextArea
const description = van.state('');
return TextArea({
label: 'Description',
value: description,
rows: 4,
oninput: e => description.val = e.target.value
});▶️ Live Preview
💡 Click "Edit Code" to modify the example
🔄 Click "Apply Changes" to see your modifications
↩️ Click "Reset" to restore original code
💡 Usage Tips
🔗 Related
Explore vwf
Discover what vwf can do