T

SegmentedControlStateOptions

The options useSegmentedControlState builds a SegmentedControlState from.

type SegmentedControlStateOptions = { … }

Members

The index of the tab selected first.

The tabs, in display order.

onPageChange?(index: number) => void

Called with the new index when the selected page changes.

onSetActiveIndex?(index: number) => void

Called with the index of the tab the user selects.

pageWidthnumber

The width of one page in points; Unbound passes the window width.