Skip to content
Inputs & Forms

Segment

client42.5 kB
@stellaria/nebula-webSegmentProps

Preview

Props

13
PropTypeDefault

children

required
ReactNode

className

string

color

ColorExtended"primary"

defaultValue

string""

disabled

booleanfalse

draggable

booleantrue

fullWidth

booleanfalse

onChange

((value: string) => void)

overflowMode

What the control does when its tabs do not fit. `scroll` slides the bar and keeps one row, `wrap` breaks it into rows and moves the indicator on both axes. Both turn the drag gesture off. Not named `overflow`: that one is a style prop and lands on the same element.

SegmentOverflowMode"visible"

padded

booleanfalse

size

SegmentSize"md"

value

string

variant

SegmentVariant

Parts

1
Segment.Item

Also accepts

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

Style props · 127