logo-icon
STW UI

Tabs

Tabs can be used to show a list of links in a tabbed format.

Usage

svelte
import { Tabs } from 'stwui';
// OR
import Tabs from 'stwui/tabs'; // for tree shaking

Default

Full Width

Bar

Tabs Props

currentTab string
variant 'default' | 'full-width' | 'bar' default
containerClass string | undefined

Tabs Slots

default <Tabs.Tab />

Tabs.Tab Props

href string
key string

Tabs.Tab Slots

icon <Tabs.Tab.Icon slot="icon" />
default

Tabs.Tab.Icon Props

data string (IconData)
viewBox string 0 0 24 24
size string 24px
width string 24px
height string 24px
color string currentColor
stroke string | undefined
fill string currentColor

Tabs Class Identifiers

stwui-tabs-wrapper
stwui-tabs
stwui-tabs-bar-wrapper
stwui-tabs-bar
stwui-tab