Skip to content
Navigation

Tabs

client43 kB
@stellaria/nebula-webTabsProps

Preview

Props

19
PropTypeDefault

aria-label

string

auto

Sizes the box to the active panel and springs to the next one. Ignored when `fill` is set.

booleanfalse

autoWidth

Same on the horizontal axis: every panel takes its own width and the box springs to it.

booleanfalse

className

string

color

ColorExtended"primary"

data

required
readonly TabItem[]

defaultValue

string

disabled

booleanfalse

draggable

booleantrue

fill

Stretches the panels to the height of the box. Takes precedence over `auto`.

booleanfalse

fullWidth

booleanfalse

loop

Wraps the swipe around, so the first panel follows the last one. Needs two panels or more.

booleanfalse

onChange

((value: string) => void)

overflowMode

What the tab bar does when its tabs do not fit: `scroll` slides it, `wrap` breaks it into rows.

SegmentOverflowMode

padded

boolean

size

SegmentSize"md"

swipeable

booleantrue

value

string

variant

SegmentVariant

Also accepts

On top of its own props, this component forwards these groups.

Style props · 127