Skip to content

Textarea

tanthammar edited this page Nov 13, 2020 · 2 revisions

Textarea

Extends BaseField

Additional methods

->rows(int $rows)

Initial number of rows, the textarea is resizable.

->placeholder(string $placeholder)

Add a placeholder attribute to the textarea.

->required()

Add the required attribute to the textarea.

Example

Textarea::make('Textarea')
    ->placeholder('Tell me a story')
    ->rows(3)
    ->required()
    ->rules('required|string')

Blade component

<x-tall-textarea :field="$field" />

Styling

Extend Blade component (or override in config file)

Tanthammar\TallForms\Components\Textarea::class
Clone this wiki locally