Tabs Blade component content
I'm utilizing the Tabs Blade component within a Livewire component, but the content isn't being displayed. Here's the code, and I'm hoping someone can identify why it's not functioning as expected.
9 Replies
Empty 😢
The Blade component is only responsible for rendering the tab bar. The rest is on you. Just use
x-show
to toggle the right contentIt's weird that the tab component doesn't have a content parameter, but I'll try to fix that with x-show.
It's the tab pills. Not the actual tab content
Okay, its working
Hi @waleedGRT, I have the same problem, could you please give me the solution for the x-show ? I can't get the x-show to work..
@Hugo Here's a small example
and in your component add
You can probably do it with JS/Alpine only. Up to you.
Nice thanks!
I've just found a solution of my own, I'll share it anyway:
With
$activeTab = '1'
in my component.
Thanks for your help