# Glass Button — React Native component for Expo

> Liquid Glass buttons and toolbars that spring down under your finger.

Liquid Glass buttons and toolbars. GlassButton: label, icon or both in three sizes (icon-only is a circle), plain monochrome glass or tinted glass for the primary action, a spring press and a light haptic — real interactive Liquid Glass on iOS 26, blur everywhere else. GlassToolbar: icon buttons in one glass capsule with hairline separators, or a floating cluster of glass circles that melt into each other on iOS 26, with an active state for tools and toggles.

- Docs: https://expokit.in/docs/components/glass-button
- Tier: Pro (ExpoKit Pro plan)
- Also called: liquid glass button, glass toolbar, blur button
- 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: Sizes, Tinted, Toolbar, Floating Cluster

## 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 |
| --- | --- | --- | --- |
| `label` | `string` | — | Button text. Leave it out (with an icon) for a circular icon button. |
| `icon` | `ReactNode` | — | Icon before the label. `useGlassButtonInk({ variant, tint, scheme })` returns the colour to draw it in. |
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Height 36 / 44 / 52; icon-only buttons are circles of that size. `GLASS_ICON_SIZE[size]` is the matching icon size. |
| `variant` | `'glass' \| 'tinted'` | `'glass'` | Plain monochrome glass, or glass washed with `tint` — the label switches to black or white to stay readable. |
| `tint` | `string` | `kit accent` | Wash colour for the tinted variant. |
| `scheme` | `'light' \| 'dark'` | `kit theme` | Force light or dark glass, e.g. 'dark' over photos. |
| `onPress / disabled` | `() => void / boolean` | `— / false` | Press handler; disabled dims the button and blocks presses. |
| `haptics` | `boolean` | `true` | Light impact on press. |
| `accessibilityLabel` | `string` | `label` | Required for icon-only buttons. |
| `style` | `StyleProp<ViewStyle>` | — | Outer style: margins, position, width or flex (buttons hug their content by default). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |
| `GlassToolbar items` | `{ key, icon, label, onPress?, active?, disabled? }[]` | — | Icon buttons. `icon` is a node or `({ color, size, active }) => node`; `label` is the accessibility label; `active` draws a soft bubble in the accent colour. |
| `GlassToolbar size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Item size, 36 / 44 / 52. |
| `GlassToolbar floating` | `boolean` | `false` | A cluster of separate glass circles (melting together on iOS 26) instead of one capsule. |
| `GlassToolbar direction` | `'row' \| 'column'` | `'row'` | Lay items out horizontally or vertically (map-style controls). |
| `GlassToolbar separators / gap` | `boolean / number` | `true / 8` | Hairlines between capsule items; space between floating circles. |
| `GlassToolbar accent` | `string` | `kit accent (glass ink)` | Colour of active items. |
| `GlassToolbar scheme / haptics / accessibilityLabel / style` | `—` | `kit theme / true / — / —` | As on GlassButton; accessibilityLabel names the toolbar. |

## Behaviour & accessibility

- **Motion**: Buttons spring down to 0.94 and toolbar icons to 0.86 while pressed, and an active toolbar item springs in a soft bubble. On iOS 26 a GlassButton lets the native glass bounce instead.
- **Reduced motion**: Press springs are skipped and the active bubble appears without a spring.
- **Haptics**: A light impact on every press, unless haptics is false.
- **Screen readers**: Each button has the button role with its label and disabled state; toolbar items also report selected. The toolbar itself has the toolbar role.
- **Platforms**: iOS 26 shows real interactive Liquid Glass, tinted natively, and floating toolbar circles melt together. Elsewhere it is blurred glass with a stronger colour wash for tinted buttons.

## FAQ

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

Use ExpoKit's Glass Button, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made liquid glass button 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 Button work in Expo Go?

Yes. Glass Button 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 Button 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 Button free?

Glass Button 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-button
- 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
