Tabs

A set of layered sections of content—known as tab panels—that are displayed one at a time.

Default

A standard tab implementation with card-based content.

Account

Make changes to your account here. Click save when you're done.

Vertical

Tabs displayed vertically, useful for settings or side navigation.

Account

Vertical tabs layout for better navigation in complex settings.

Paginated

Automatically adds navigation buttons when there are too many tabs to fit.

Content for Tab 0

Variants & Icons

Different visual styles and integration with Lucide icons.

Basic

Line Variant

With Icons

Icons Only

Integration

Integration with other components like inputs and buttons in the header area.

General dashboard overview and statistics.

Installation & Usage

Installation

Imports

Basic Usage

API Reference

Brain API

The Brain component provides the core logic and accessibility for the tabs.

DirectiveSelectorInputs
BrnTabsbrn-tabs
  • tab: string - The active tab value.
  • orientation: 'horizontal' | 'vertical'
  • direction: 'ltr' | 'rtl'
  • activationMode: 'automatic' | 'manual'

Helm API

The Helm component provides the spartan/ui styling for the tabs.

DirectiveSelectorDescription
HlmTabshlm-tabsMain container for tabs.
HlmTabsListhlm-tabs-list Container for tab triggers. Supports variant="line".
HlmTabsTriggerbutton[hlmTabsTrigger]The button that activates a tab.
HlmTabsContent[hlmTabsContent]The content panel associated with a tab.
HlmTabsPaginatedListhlm-paginated-tabs-listPaginated alternative to HlmTabsList.