Creating tabs from blade view
I want to create a tab schema from a blade component. I followed the documentation and have this
This however only shows the tab but how do I add the content of each tab?
This is my solution:
Is there a simpler solution?
5 Replies
Nope. Anything "not simple" about a this?
😂
I thought maybe there was slot for it or something
@Dennis Koch I guess the problem is that this isnt documented. I kinda had to figure it out alone. The documentation only shows how to make a tab but not how to add content
Unless im mistaken
Maybe this should be added to the docs?
Wanna send a PR and add it to the "Introduction"?
https://filamentphp.com/docs/4.x/components/tabs
yeah I wouldnt mind
I was thinking of having
x-slot='content', but you cant have multiple slots (one is already reserved for badge). Im trying to think of a better way to do this
which would have to be coded, but then the user doesnt have to add classes to style it manuallyWhy do you need a slot?