{{-- format-ignore-start --}} @props([ // name of the input field for use in forms 'name' => defaultBladewindName('textarea-'), 'rows' => config('bladewind.textarea.rows', 3), 'label' => '', 'required' => false, 'addClearing' => config('bladewind.textarea.add_clearing', true), 'placeholder' => '', // placeholder text 'selectedValue' => '', // message to display when validation fails for this field // this is just attached to the input field as a data attribute 'errorMessage' => '', // this is an easy way to pass a translatable heading to the notification component // since it is triggered from Javascript, it is hard to translate any text from within js 'errorHeading' => config('bladewind.textarea.error_heading', __("bladewind::bladewind.error_heading")), // how should error messages be displayed for this input // by default error messages are displayed in the Bladewind notification component // the component should exist on the page 'showErrorInline' => config('bladewind.textarea.show_error_inline', false), 'toolbar' => config('bladewind.textarea.toolbar', false), 'except' => '', 'nonce' => config('bladewind.script.nonce', null), ]) @php $addClearing = parseBladewindVariable($addClearing); $showErrorInline = parseBladewindVariable($showErrorInline); $required = parseBladewindVariable($required); $name = parseBladewindName($name); $required_symbol = ($label == '' && $required) ? ' *' : ''; $is_required = ($required) ? 'required' : ''; $placeholder_color = ($label !== '') ? 'placeholder-transparent dark:placeholder-transparent' : ''; @endphp {{-- format-ignore-end --}}