SegmentedProps

Segmented control: one of a few views or filters, the selected segment raised on control. A radio group to assistive tech; onChange gets the option.

Source
type SegmentedProps<T extends string> = Omit<PrimitiveProps<'div'>, 'as' | 'onChange' | 'children'> & {
  options: readonly T[]
  value: T
  onChange: (value: T) => void
}

API reference

type SegmentedProps<T extends string> = Omit<PrimitiveProps<'div'>, 'as' | 'onChange' | 'children'> & {
  options: readonly T[]
  value: T
  onChange: (value: T) => void
}

Related types