thc1967
Styling in a Livewire Form
I found it. This was an upgrade from Laravel 9, Tailwind 2, and Filament 2 to Laravel 10, Tailwind 3, and Filament 3.
There were changes that I needed to make to my tailwind.config.js file to reference the Filament presets. I may have missed that piece all the way back to the old version.
Like I said, the styling classes were there, they just weren't applying. Now they are.
12 replies
Styling in a Livewire Form
Bumping this for help. Still can't figure out how to get a Livewire component that leverages Filament forms to style accurately. The styles are in the HTML elements, but they're not displaying as if the CSS is loading / recognized.
12 replies
Styling in a Livewire Form
That was from the Livewire component. The Livewire and Filament Admin Panel code is very similar.
It obviously displays the fields, but it doesn't bring in the classes like I expect.
Need to figure out why it's not bringing in the classes.
12 replies
Styling in a Livewire Form
I'm pretty sure I already am, because I'm following the Filament docs to build the form. Sample code for the first 3 fields:
TextInput::make('attendee')
->required()
->label('Attendee Name')
->columnSpan(['sm' => 2])
->autofocus()
->helperText('We need your real name here, first and last, to ensure campground security will let you into the campground.'),
TextInput::make('email')
->email()
->autocomplete()
->required()
->rules(['email:rfc,dns']),
TextInput::make('phone')
->required()
->autocomplete()
->tel(),
12 replies