vito/resources/views/components/textarea.blade.php
2024-04-23 21:34:39 +02:00

9 lines
349 B
PHP

@props(["disabled" => false])
<textarea
{{ $disabled ? "disabled" : "" }}
{!! $attributes->merge(["class" => "border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-primary-500 dark:focus:border-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 rounded-md w-full"]) !!}
>
{{ $slot }}</textarea
>