Mobile › Overlays

Sheet

A panel that slides up from the bottom for a short task. Swipe down, tap outside or press back to close.

Installation

npx expo install plankui-mobile react-native-safe-area-context expo-haptics

Usage

import { Sheet, TextField, Button } from "plankui-mobile";

const [open, setOpen] = useState(false);

<Sheet open={open} onClose={() => setOpen(false)} title="New project">
  <TextField label="Name" value={name} onChangeText={setName} autoFocus />
  <Button block size="lg" onPress={create}>Create</Button>
</Sheet>

iOS and Android

iOS: A rounded sheet with a grabber that follows your finger and springs back.

Android: A Material 3 bottom sheet with a drag handle; the back button closes it.

API reference

PropTypeDefaultDescription
openbooleanWhether it shows.
onClose() => voidCalled when the person closes it.
titlestring–Heading at the top of the sheet.
childrenReactNodeSheet content.
dismissiblebooleantrueSwipe down or tap outside to close. Turn off for steps that must be finished.