Overview Button Copy button Field Input Number field Textarea Select Combobox Multiselect Date picker Date range picker Date-time picker Checkbox Radio group Position picker Switch Slider Dropzone Device controls Avatar Badge Card Collapsible Kbd Map Matrix Proportion bar Separator Stat Table Timeline Chat Playback Pagination Charts Chart theming Profile chart Time series chart Bar chart Isopleth chart TS diagram Box plot Rose chart Calendar chart Banner Toast Loader Progress Skeleton Empty state Error state Dropdown menu Tooltip Info tooltip Dialog Sheet Resizable Confirm dialog Breadcrumbs Command palette Mobile menu Navigation list Outline Scroll rail Sidebar Tabs
Tabs
A row of options with an indicator that slides to the selected one. Underline for views of one thing, segmented for a quick switch.
Playground
Click and arrow through the tabs to see the indicator slide.
Variant
Size
<Tabs
bind:value
tabs={[
{ value: 'overview', label: 'Overview' },
{ value: 'missions', label: 'Missions', count: 12 },
{ value: 'data', label: 'Data' },
]}
/> Underline
Under a page title, as links. The line runs the full width; the labels line up with the content.
Segmented
A view switcher and a filter. Icons alone need an aria-label.
Which one
Underline Views of one thing: a project, a vessel, a mission. Sits under the page title, usually as links so each view has its own URL.
Segmented One of 2 to 5 options that applies at once: map or table, a status filter, a small panel. Not for a value saved with a form; that is a radio group.
Navigation list A section of many separate pages, like settings. See the rules on its page.