NativeSegmentedControl
SegmentedControl — iOS-style horizontal segmented picker. Use for 2-5 mutually exclusive options that fit on one line. For more than 5, prefer <NativeTabs> or <NativeSelect>. Renders an Android- acceptable filled-pill variant; the visual remains compact on both platforms.
packages/ui-native/src/components/segmented-control.tsx
Import
Subpath export:
@marktiderman/genesis-ui-nativeimport { NativeSegmentedControl } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeSegmentedControl
| Prop | Type | Default | Description |
|---|---|---|---|
| onChange* | (value: T) => void | — | |
| options* | NativeSegmentedControlOption<T>[] | — | |
| value* | T | — | |
| className | string | — | |
| disabled | boolean | — | Disable the entire control. |
| testID | string | — |