Tabs
Tabs + Tab organize long forms and infolists into panels. Vertical layout puts the tab list beside the panels (Filament / Orbit parity).
import { Tabs, Tab, TextInput } from '@shamar/core'
// Horizontal (default)Tabs.make() .tabs([ Tab.make('General').icon('cog').schema([ TextInput.make('name').required(), ]), Tab.make('Billing').badge(2).schema([ TextInput.make('plan'), ]), ]) .activeTab(1)
// VerticalTabs.make() .vertical() .tabs([ Tab.make('Profile').schema([/* … */]), Tab.make('Security').schema([/* … */]), ])Tabs
| Method | Description |
|---|---|
Tabs.make(title?) | Container; card chrome on by default. |
.tabs([...Tab]) | Ordered tab panels. |
.activeTab(index) | 1-based default active tab. |
.vertical(bool?) | Tab list beside panels (default false = horizontal). |
.card(bool) / .contained(bool) | Contained chrome around the tab shell. |
Tab
| Method | Description |
|---|---|
Tab.make(title) | Panel title shown on the tab control. |
.icon(name) | Optional icon on the tab. |
.badge(value) | Small count / label badge. |
.description(text) | Optional panel description. |
.columns(n) / .schema([...]) | Panel body layout. |
Playground: Settings page uses horizontal Tabs.