Textarea

Multi-line text input field.

Examples

Basic Textarea

blade
<x-plume::form 
    formData="{ 'message': '' }">
    <div class="max-w-sm">
        <x-plume::form.textarea label="Message" model="message" placeholder="Your message..."
            rows="4" />
    </div>
</x-plume::form>
Prop Type Default Description
label string null The label for the textarea.
name string null HTML name attribute.
id string null HTML id attribute. Auto-generated if not provided.
model string null AlpineJS model name for two-way binding.
value string '' Initial content for the textarea. Ignored if $model is used.
rows int 3 The number of visible text lines.
placeholder string '' Placeholder text.

Usage

blade
<x-plume::form >
    <x-plume::form.textarea label="Message" model="message" rows="5" />
</x-plume::form>