Skip to main content

Tabs

An accessible tabbed navigation component with line and pill visual variants.

Import

import { Tabs } from '@synapse-ui/tabs';

Basic Usage

tabs = [
{ id: 'overview', label: 'Overview' },
{ id: 'settings', label: 'Settings' },
{ id: 'members', label: 'Members', disabled: true },
];
<synapse-tabs [tabs]="tabs" [activeTab]="currentTab" (tabChange)="currentTab = $event">
<!-- panel content here -->
</synapse-tabs>

Inputs

InputTypeDefaultDescription
tabsTabItem[][]Tab definitions (id, label, disabled?)
activeTabstring | undefinedID of the active tab (defaults to first)
variant'line' | 'pill''line'Visual style of the tab strip

Outputs

OutputPayloadDescription
tabChangestringEmits the id of the newly selected tab