Skip to main content

Introduction

Tabs organize content into multiple panels, reducing visible complexity:
string | Htmlable | Closure
The tabs container label.
array | Closure
An array of Tab components.

Default active tab

Set which tab is open by default:
int | Closure
default:"1"
The index of the active tab (1-based).

Tab icons

Add icons to tabs:
string | BackedEnum | Htmlable | Closure
The icon to display.

Icon position

Control icon position:
IconPosition | Closure
default:"IconPosition::Before"
The icon position (Before or After).

Tab badges

Display badges on tabs:
string | int | float | Closure
The badge content.

Badge color

Customize badge colors:
string | array | Closure
The badge color.

Deferred badges

Load badges asynchronously for better performance:
The badge value must be from a closure when using deferBadge(). The Tabs component must have a key() set.
bool | Closure
default:"true"
Whether to defer badge loading.

Grid columns in tabs

Customize the grid within tabs:
int | array | Closure
The number of columns or responsive configuration.

Scrollable tabs

By default, tabs scroll horizontally. Disable scrolling:
When disabled, overflow tabs appear in a dropdown.
bool | Closure
default:"true"
Whether tabs are scrollable.

Vertical tabs

Render tabs vertically:
bool | Closure
default:"false"
Whether to render tabs vertically.

Removing the container

Remove the styled container:
bool | Closure
default:"true"
Whether to use a container.

Persisting the active tab

In local storage

Persist the current tab in local storage:
bool | Closure
default:"true"
Whether to persist the tab.
string | Closure
A unique ID for the tabs (required for persistence).

In query string

Persist the current tab in the URL:
Customize the query parameter:
string | Closure
default:"'tab'"
The query string parameter name.