Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Navigation

tabs

Tabbed interface; panels supplied via named slots.

Make changes to your account here.

Installation

php artisan ui:add tabs

Usage

<x-ui.tabs :tabs="['account' => 'Account', 'password' => 'Password']" default="account">
    <x-slot:tab_account>Make changes to your account here.</x-slot:tab_account>
    <x-slot:tab_password>Change your password here.</x-slot:tab_password>
</x-ui.tabs>

Ships its own inline <script> (click plus arrow/Home/End keys); no JS dependencies. Pass `:tabs` as ['key' => 'Label']; provide each panel via a named slot `tab_<key>`.

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'tabs' => [],
    'default' => null,
])