SusTabs

Tabbed navigation strip — Items + active Model.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Model | Prop<string> | "" | v-model |
Color | Prop<string> | "primary" | v-model |
Align | Prop<string> | "start" | v-model |
Direction | Prop<string> | "horizontal" | v-model |
Grow | Prop<bool> | false | v-model |
SliderVisible | Prop<bool> | true | v-model |
Slots
| Name |
|---|
(default) |
Events
| Name | Field | Payload |
|---|---|---|
TabChanged | OnTabChanged | string |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
keyboard-focussus-tabssus-tabs__contentsus-tabs__headersus-tabs__slidersus-tabs__tabsus-tabs__tab--activesus-tabs__tab--disabledsus-tabs__tab-iconsus-tabs__tab-labelsus-tabs--align-centersus-tabs--align-endsus-tabs--align-startsus-tabs--dangersus-tabs--growsus-tabs--primarysus-tabs--secondarysus-tabs--successsus-tabs--vertical
Usage
csharp
var tabs = new SusTabs();
tabs.Items.Value = new List<SusTabs.TabItem>
{
new() { Title = "Overview", Value = "overview", Icon = "house" },
new() { Title = "Loadout", Value = "loadout", Icon = "backpack" },
new() { Title = "Stats", Value = "stats", Icon = "chart-bar" },
};
tabs.Model.Value = "overview";
tabs.Color.Value = "primary";
tabs.Align.Value = "start";
tabs.SliderVisible.Value = true;
tabs.OnTabChanged += value => { /* … */ };| Prop | Role |
|---|---|
Items | List<TabItem> — Title, Value, Icon, Disabled |
Model | Active tab value |
Align | start · center · end |
Direction | horizontal · vertical |
Grow | Stretch tabs to fill width |
Notes
- Default slot is the tab panel host; switch content from
OnTabChanged/Model.