This repository was archived by the owner on Dec 29, 2021. It is now read-only.
generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Form TextareaField
Luca Longo edited this page Aug 31, 2020
·
4 revisions
It's the class textarea field, <textarea>Your content</textarea>.
Inherits all properties from Field
| name | type | default value | description |
|---|---|---|---|
| id | ?string | null | Field ID (autogenerated if empty) |
| name | ?string | null | Field name |
| label | ?string | null | Label visible on the form |
| errorBag | ?string | null | Error field returned from the bag |
| disabled | bool | false | Determs if the field is disable (or not) |
| readOnly | bool | false | Determs if the field is read-only (or not) |
| value | mixed | null | Field value |
| placeholder | ?string | null | Field placeholder |
| hint | ?string | null | Hint text shown above the form component |
| help | ?string | null | Hint text shown after the form component |
<x-bc-form:textarea-field label="Textarea field" error-bag="textareaField" :value="'My value'" />or, if you use Laravel Livewire:
<x-bc-form:textarea-field label="Textarea field" error-bag="textareaField" wire:model.lazy="textareaField" />prependappend
Example:
<x-bc-form:textarea-field>
<x-slot name="prepend">Prepend</x-slot>
<x-slot name="append">Append</x-slot>
</x-bc-form:textarea-field>