diff --git a/app/View/Form/Text.php b/app/View/Form/Text.php
index 3cacb3ad..1f274277 100644
--- a/app/View/Form/Text.php
+++ b/app/View/Form/Text.php
@@ -26,7 +26,7 @@ class Text extends Component
     public function render()
     {
         return <<<'HTML'
-            <label class="flex flex-col group {{$heightClass}}" for="{{$id}}" style="{{$heightVars}}">
+            <label {{ $attributes->merge(['class' => 'flex flex-col group '.$heightClass])->only('class') }} for="{{$id}}" style="{{$heightVars}}">
                 @if ($label)
                 <x-form::label :required="$required">{{$label}}</x-form::label>
                 @endif
@@ -42,7 +42,7 @@ class Text extends Component
                             group-[.size-default]:text-sm group-[.size-sm]:text-xs
                             group-[.size-default]:p-2 group-[.size-sm]:p-1
                         "
-                        {{ $attributes }}
+                        {{ $attributes->except('class') }}
                     />
                     <x-ui::errors :for="$name" />
                     @if($hint)