diff --git a/resources/views/components/form/input.blade.php b/resources/views/components/form/input.blade.php
index ebe6a56..28e8ee0 100644
--- a/resources/views/components/form/input.blade.php
+++ b/resources/views/components/form/input.blade.php
@@ -4,6 +4,7 @@
'name' => '',
'label' => '',
'value' => '',
+ 'class' => ''
])
@if ($label === 'none')
@@ -23,7 +24,9 @@
@if ($label !='none')
-
+
@endif
merge(['class' => 'block w-full dark:bg-gray-500 dark:text-gray-200 dark:placeholder-gray-200 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-light-blue-500 focus:border-light-blue-500 sm:text-sm']) }}>
+ @class([
+ 'block w-full dark:bg-gray-500 dark:text-gray-200 dark:placeholder-gray-200 border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-light-blue-500 focus:border-light-blue-500 sm:text-sm',
+ 'border-red-500' => $errors->has($name),
+ ])
+ {{ $attributes }}>
@error($name)
{{ $message }}
@enderror