Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { ActionSheet } from "@/components/ui/action-sheet";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| open / defaultOpen Controlled / uncontrolled visibility. | boolean | false |
| onOpenChange Called on actions, Cancel, backdrop tap, drag-down, back and Escape. | (open: boolean) => void | — |
| actions The options. `icon` is a built-in name (camera, image, trash, reply, forward, copy, pin, edit, share, link, mail, …) or a node; destructive rows use the danger colour; return false from onPress to stay open; `color` tints grid tiles. | { label, icon?, destructive?, disabled?, color?, onPress? }[] | — |
| title / message Header text above the actions. | string | — |
| cancelLabel Separate cancel button; null hides it. | string | null | labels.cancel |
| onCancel Called on Cancel, backdrop tap and drag-to-dismiss. | () => void | — |
| variant iOS grouped cards (text-only rows centred in the accent; rows with icons read like a menu), Material edge-to-edge list with a drag handle, or share-sheet tiles. | "inset" | "list" | "grid" | "inset" |
| bottomInset Padding above the home indicator; pass useSafeAreaInsets().bottom for the device. | number | platform safe inset |
| accent Colour of text-only actions and Cancel in the inset variant. | string | theme accent |
| dismissible Close on scrim tap, drag, back and Escape. When false the sheet only rubber-bands. | boolean | true |
| haptics Light impact on open, selection tick when an action is picked. | boolean | true |
| style Sheet container 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
Pick the Variants chip above the preview, or set variant=… — "inset" | "list" | "grid".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "inset" | "list" | "grid" · default "inset"iOS grouped cards (text-only rows centred in the accent; rows with icons read like a menu), Material edge-to-edge list with a drag handle, or share-sheet tiles.
- accent
- string · default theme accentColour of text-only actions and Cancel in the inset variant.
- style
- StyleProp<ViewStyle>Sheet container 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
- Touch
- Drag anywhere on the sheet. Pull past a third of its height or flick down to dismiss; pulling up rubber-bands.
- Motion
- Springs up over a fading scrim. The exit is quicker than the entry and keeps a fling's momentum.
- Reduced motion
- The sheet fades in and out in place instead of sliding up from the bottom.
- Haptics
- A light impact when it opens and a selection tick when you pick an action. Turn off with haptics={false}.
- Screen readers
- The sheet is a modal view, the title is a header and each row is a button with its label and disabled state.
- Keyboard
- Escape closes it on web; the Android back button closes it too.
Source
FAQ
How do I make an action sheet in React Native?
npx @expokit/cli@latest add action-sheet in your Expo or React Native project and it copies a ready-made action sheet into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Action Sheet work in Expo Go?
react-native-svg, expo-haptics) are all included in Expo Go.How do I add Action Sheet to my Expo app?
npx @expokit/cli@latest add action-sheet in your project. The CLI copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change.Is Action Sheet free?
Can I change how Action Sheet 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.