T
SegmentedControlStateOptions
The options useSegmentedControlState builds a SegmentedControlState from.
type SegmentedControlStateOptions = { … }Members
defaultIndex?
numberThe index of the tab selected first.
The tabs, in display order.
onPageChange?
(index: number) => voidCalled with the new index when the selected page changes.
onSetActiveIndex?
(index: number) => voidCalled with the index of the tab the user selects.
pageWidth
numberThe width of one page in points; Unbound passes the window width.