# Glass Segmented Control — React Native component for Expo

> A glass segmented control whose thumb stretches toward the new segment like a drop.

A Liquid Glass segmented control: a glass track with a brighter glass thumb that springs to the new segment, stretching in the direction of travel before it settles like a drop. Press the thumb and drag it across the segments — it follows your finger, ticks as it crosses each one and snaps to the nearest on release. Native-driver motion, Reduce Motion aware, monochrome unless you give it an accent.

- Docs: https://expokit.in/docs/components/glass-segmented
- Tier: Pro (ExpoKit Pro plan)
- Also called: liquid glass segmented control, glass toggle, blur segmented picker
- Category: Glass
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: expo-glass-effect, expo-blur, react-native-svg, expo-haptics
- Uses ExpoKit items: kit, glass
- Variants: Default, With Icons, Light, Small

## Installation

This component is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `options` | `(string \| { value, label, icon? })[]` | — | Equal-width segments; icon is a node shown before the label. |
| `value / onChange` | `string / (value) => void` | — | Controlled selection (or use defaultValue). Fires on tap and on release after a drag. |
| `defaultValue` | `string` | `first segment` | Initial selection when uncontrolled. |
| `size` | `'sm' \| 'md'` | `'md'` | 32 / 40pt tall. |
| `scheme` | `'light' \| 'dark'` | `kit theme` | Force light or dark glass and ink, e.g. over a photo. |
| `accent` | `string` | `glass ink (black / white)` | Selection colour: fills the thumb; the label switches to black or white to stay readable. |
| `haptics` | `boolean` | `true` | Selection tick on change and while dragging across segments. |
| `accessibilityLabel` | `string` | — | Label for the whole control (tablist; each segment is a tab with selected state). |
| `style` | `StyleProp<ViewStyle>` | — | Style for the glass track. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Tap a segment, or press the thumb and drag it across. It follows your finger and snaps to the nearest segment on release.
- **Motion**: The thumb springs to the new segment, stretching in the direction of travel before it settles. It lifts slightly while you drag it.
- **Reduced motion**: The thumb slides over in a short timing with no stretch, and does not lift when dragged.
- **Haptics**: A selection tick on change and each time a drag crosses into another segment.
- **Screen readers**: The control is a tablist and each segment a tab with its label and selected state.
- **Platforms**: Built on Glass: real Liquid Glass on iOS 26, blurred or frosted glass elsewhere.

## FAQ

### How do I make a liquid glass segmented control in React Native?

Use ExpoKit's Glass Segmented Control, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made liquid glass segmented control into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Glass Segmented Control work in Expo Go?

Yes. Glass Segmented Control runs in Expo Go on iOS and Android with no development build — its packages (expo-glass-effect, expo-blur, react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Glass Segmented Control to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app and installs expo-glass-effect, expo-blur, react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.

### Is Glass Segmented Control free?

Glass Segmented Control is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

## More

- Live preview, variants and code: https://expokit.in/docs/components/glass-segmented
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
