Textarea

Basic Text Area

error

<!-- textarea.blade.php -->
<div class="c-textarea" role="textarea">
    <textarea id="61efad5ad1f8e" type="textarea" name="ImaTextarea" aria-multiline="true" placeholder="Normal text field" aria-placeholder="Normal text field" data-uid="61efad5ad1f88"></textarea>
    <label class="c-textarea--label">Normal text field</label>
    <div id="error_61efad5ad1f8e_message" class="c-textarea-invalid-message">
        <!-- icon.blade.php -->
    <i id="61efad5ad1ff6" class="c-icon c-icon--size-sm material-icons" translate="no" role="img" alt="" data-uid="61efad5ad1ff1">
                    error
            </i>
        <span class="errorText"></span>
    </div>
</div>
@textarea([
    'type' => 'text',
    'attributeList' => [
        'type' => 'textarea',
        'name' => 'ImaTextarea',
    ],
    'label' => "Normal text field"
])
@endtextarea

Blade component parameters

Key Default value Type Available values Description
label string - Array of label items like labelText.
required false boolean - HTML5 validation on fields
value string - Field value
id string - The DOM id of the component.
classList [] array - Array containing wrapping classes array
attributeList [] array - Array containing keys and values rendered as attributes
containerAware false boolean true/false Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component.
Settings location: /mnt/persist/www/docroot_styleguide_v2/source/library/source/php/Component/Textarea/textarea.json