Props
| Prop | Type | Default |
|---|---|---|
| buttons MorphingButtonGroup: the buttons to show now; changing it morphs the row. | { key, label, icon?, variant?, onPress? }[] | — |
| height Button height. | number | 44 |
| gap Space between buttons. | number | 10 |
| duration Morph length in ms. | number | 380 |
| SignatureSheet label The pill's text. | string | 'Sign' |
| SignatureSheet title Card title. | string | 'Add Signature' |
| SignatureSheet onConfirm The finished signature. | ({ paths, width, height }) => void | — |
| SignatureSheet onCancel Closed without signing. | () => void | — |
| SignatureSheet cardHeight Height of the open card. | number | 340 |
| style Root style. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- style
- StyleProp<ViewStyle>Root style.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Morph
- Buttons with the same key keep their place and resize; new ones grow in from nothing and leaving ones shrink away, on one smooth ease (no bounce).
- Labels
- A label change cross-fades while the button resizes.
- Signature
- The pad draws smoothed strokes; undo removes the last one, Reset clears, Confirm asks once more. onConfirm gets SVG path data and the pad size.
- Haptics
- A tick on each button, a light tap opening the sheet, success on confirm.
- Reduced motion
- Morphs are instant.
Source
FAQ
How do I make a signature pad in React Native?
Does Morphing Button Group work in Expo Go?
react-native-svg, expo-haptics) are all included in Expo Go.How do I add Morphing Button Group to my Expo app?
react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.Is Morphing Button Group free?
npx @expokit/cli@latest login) and it installs the full source into your app.Can I change how Morphing Button Group looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.