Segmented
A segmented control that switches between views of a screen — the native counterpart of the web's segmented tabs.
- Domain
- Navigation & shell
- Support level
- Size
- Not measured
- Who uses it
- No live product imports it yet

“Default”, its React Native story at a phone's width — the same code on iOS and Android.
Mobile only — React Native, from @krizaka/ui/native. Beta: its API may still change in a minor version.
- Web · n/a. The web's segmented control is the radio group's segments. → Radio group
- Desktop · n/a. The Mac app uses the web's segments. → Radio group
Why it is here. Used by Sovkora, Verikora, Folioviv.
When to use
- At the top of a screen, to switch between two to four views of the same content: feed, auctions, challenges.
When not to use
Installation
Install
npx expo install react-native-svg
npm install @krizaka/uiImport
import { Segmented } from "@krizaka/ui/native";Wrap the app once in ThemeProvider from @krizaka/ui/native: every component reads its colour roles.
Examples
React Native has no live preview on the web: each example shows the screenshot of its story, tested in both themes, and the code to copy.
Default
Controlled, three views.


Small
size="sm".


Props
Switches between views of one screen: equal segments on a track, the chosen one raised — the web
Tabs variant="segmented". A tab list for screen readers. To filter a list, use Chip.Group.
| Prop | Type | Default | Description |
|---|---|---|---|
onValueChangerequired | (value: T) => void | — | Called with the view pressed. |
optionsrequired | readonly SegmentedOption<T>[] | — | The views, in order; label passed translated. |
valuerequired | string | — | The selected view (controlled). |
aria-label | string | — | The accessible name of the tab list — passed translated. |
size | "sm" | "md" | md | sm · md (default). |
style | StyleProp<ViewStyle> | — | Styles merged last. |
Accessibility
- A tab list named by
aria-label; each segment is a tab with its selected state. - An option with
disabledis announced as disabled and cannot be pressed.
Best practices
- Controlled: keep
valuein the screen's state (or the route). - One or two words per segment, passed translated.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub