override class added for textarea

This commit is contained in:
Burak Civan
2022-06-30 18:11:24 +03:00
parent d3551a7f34
commit 608b378230
2 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,16 @@
@php
$class= 'w-full h-24 text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple';
if ($attributes->has('override')) {
$class = $attributes->get('override');
} elseif ($attributes->get('class')) {
$class .= ' ' . $attributes->get('class');
}
@endphp
<textarea
name="{{ $name }}"
id="{{ $id }}"
class="w-full h-24 text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
class="{{ $class }}"
rows="{{ $rows }}"
placeholder="{{ $placeholder }}"
@if ($disabled)