F
Filament2mo ago
RawaN

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:
@filamentStyles
@livewireStyles

@filamentScripts
@livewireScripts
@filamentStyles
@livewireStyles

@filamentScripts
@livewireScripts
but it didn't work.
No description
No description
3 Replies
Wrax
Wrax2mo ago
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
Pritbor
Pritbor2mo ago
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.
RawaN
RawaN2mo ago
I will do this, thanks mate yeah, absolutely that is a good point
Want results from more Discord servers?
Add your server