Last updated 3 years ago
Was this helpful?
Textarea::make('Textarea') ->placeholder('Tell me a story') ->rows(3) ->required() ->rules('required|string')
// Livewire component public string $textarea = '';
Blade view
<x-tall-textarea :field="Textarea::blade('Large input', 'textarea') ->placeholder('Tell me a story') ->rows(3)" />
Initial number of rows, the textarea is resizable.
Add a placeholder attribute to the textarea.
Add the required attribute to the textarea.