How to use filament component in front-end of website?
I want to use Filament buttons, but they aren't working for me. I've added the Filament and Livewire styles and scripts in the base layout:
but it didn't work.
3 Replies
It's not clear how you've configured your layout. There is useful information relating to layout setup here:
https://filamentphp.com/docs/3.x/notifications/installation#configuring-your-layout
Providing more context might help identify your issue
You should use only @FilamentStyles
@FilamentScripts
I am using it. Further, to use any blade component as given in Filament blade, you can just use as per documentation. But to you forms, table, actions and more you would need livewire or any filament custom pages and follow documentation of using forms, table, action etc in livewire.
@FilamentStyles
@FilamentScripts
is just a wrapper around livewireStyles and livewireScripts with additional filament features. Ensure you configure talwindConfig correctly.
I will do this, thanks mate
yeah, absolutely that is a good point