Tab List @astryx-svelte/core v0.3.0 · TabList

Usage

TabList provides tab-style navigation for organizing content into categorized sections. Use it to let users switch between related views without leaving the page, with overflow items handled by a built-in "more" menu.
ts
import { TabList } from '@astryx-svelte/core';

Best practices

GuidancePractices
DoKeep tab labels short and descriptive so users can quickly scan available sections.
DoUse TabMenu to group overflow items when horizontal space is limited rather than scrolling tabs off-screen.
DoWhen using hasDivider with action buttons alongside tabs, match the Button size to the TabList size (both md, both sm); the divided tab strip reserves space so tabs and same-size buttons align to a shared baseline above the rail.
Don'tUse tabs for sequential steps or workflows; use a stepper or wizard pattern instead.
Don'tPlace more than 6–8 visible tabs before the overflow menu; prioritize the most important categories.
Don'tConfuse TabList with SegmentedControl or ToggleButton. TabList is for navigation between views. SegmentedControl and ToggleButton are input controls: SegmentedControl always has exactly one selected option, while ToggleButton can be toggled on or off.

Examples

Common configurations, variations, and states.
TabList — Fill Layout
Tabs that stretch to fill the available width with a bottom divider.
TabList — With Actions
Page header pattern with tabs on the left and action buttons pushed to the right. When hasDivider is true, match the Button size to the TabList size so the tabs and actions align to a shared baseline above the divider.
TabList — With Badge
Tabs with notification badge counts rendered via endContent. Uses error variant for urgent counts and neutral for informational ones.
TabList — With Icons
Tabs with leading icons alongside text labels.
TabList — With Overflow Menu
Tab list with a dropdown menu for additional items that do not fit inline.
TabList — With Status Dot
Tabs with status dot indicators rendered via endContent to show live environment health at a glance.