Tabs
Tabs are used to toggle the visibility of content.
/* tabs-example.blade.php */
<x-tabs> <x-tab content="Preview" href="#" active="true" /> <x-tab content="Code" href="#" /> <x-tab content="Settings" href="#" />
</x-tabs>
Component API
Tabs
Prop | Description | Values |
---|---|---|
orientation | Change the orientation of the tabs | Dependant on theme |
color | Change the color of the component | Dependant on theme |
Tab
Prop | Description | Values |
---|---|---|
as | Change the element tag of the component | any |
content | Set the content of the tab | any |
orientation | Change the orientation of the tab | Dependant on theme |
active | Set the tab as active | Boolean |
disabled | Set the tab as disabled | Boolean |