| 1 | export interface SegmentedControlProps<Value extends number | string> { |
| 2 | readonly options: readonly { |
| 3 | readonly value: Value; |
| 4 | readonly label: string; |
| 5 | readonly accessibilityLabel?: string; |
| 6 | }[]; |
| 7 | readonly selected: Value; |
| 8 | readonly onSelect: (value: Value) => void; |
| 9 | /** Compact sizing applies to the non-Material control. */ |
| 10 | readonly size?: "default" | "compact"; |
| 11 | /** "tab" for the view switcher; filters stay plain buttons. */ |
| 12 | readonly role?: "tab" | "button"; |
| 13 | readonly className?: string; |
| 14 | } |