Tabs Blade component
Overview
The tabs component allows you to render a set of tabs, which can be used to toggle between multiple sections of content:
<x-filament::tabs label="Content tabs">
<x-filament::tabs.item>
Tab 1
</x-filament::tabs.item>
<x-filament::tabs.item>
Tab 2
</x-filament::tabs.item>
<x-filament::tabs.item>
Tab 2
</x-filament::tabs.item>
</x-filament::tabs>
Triggering the active state of the tab
By default, tabs do not appear "active". To make a tab appear active, you can use the active
attribute:
<x-filament::tabs>
<x-filament::tabs.item active>
Tab 1
</x-filament::tabs.item>
{{-- Other tabs --}}
</x-filament::tabs>
You can also use the active
attribute to make a tab appear active conditionally:
<x-filament::tabs>
<x-filament::tabs.item
:active="$activeTab === 'tab1'"
wire:click="$set('activeTab', 'tab1')"
>
Tab 1
</x-filament::tabs.item>
{{-- Other tabs --}}
</x-filament::tabs>