Hi, I'm trying to change the label color of a TextInput field in Filament.

TextInput::make('isbn') ->label('ISBN/EAN') ->suffixIcon('clarity-bar-code-line'). Thank you so much #❓┊help
No description
Solution:
Look in the docs for "extraAttributes", that gets you someway, although you usually need to implement the Custom Theme...also well described in docs.
Jump to solution
2 Replies
Solution
Matthew
Matthew5w ago
Look in the docs for "extraAttributes", that gets you someway, although you usually need to implement the Custom Theme...also well described in docs.
explosiboo
explosibooOP5w ago
Hi Matthew, thank you very much for trying to help, I already tried using extraAttributes but it is applied to the div and I don't know why it is not applied to the label, nor to the input even though they are its children. I did ->extraAttributes(['class' => 'text-red-500 font-bold']) but the text does not appear in red. Now I'll look at this Custom Theme thing I got it, I modified the theme.css and put .thebigcontainer .fi-fo-field-wrp-label > span{ color: red; } Thanks a lot mate! you're the best ^_^

Did you find this page helpful?