Textarea

Displays a form textarea or a component that looks like a textarea.

Component Code
<april:textarea name="message" placeholder="Type your message here." class="w-full">This message is ready to edit.</april:textarea>

Set an initial value

Place the initial value inside the component. A textarea reads its value from its content.

<april:textarea name="description">{{ old('description', $description) }}</april:textarea>

Keep the value next to the opening and closing tags to avoid adding whitespace. Use escaped Blade output for user content. An empty component still works with wire:model.

Publishing Views

Use the following command to publish this view:

php artisan april:publish textarea
April UI keeps package views in `vendor/` by default. The command uses Laravel's vendor publishing system and copies overrides to `resources/views/vendor/april/components`. To publish all components, run:
php artisan april:publish --all
Review local overrides after an upgrade with `php artisan april:update --diff`.