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-hapticsUsage
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
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | Whether it shows. | |
| onClose | () => void | Called when the person closes it. | |
| title | string | – | Heading at the top of the sheet. |
| children | ReactNode | Sheet content. | |
| dismissible | boolean | true | Swipe down or tap outside to close. Turn off for steps that must be finished. |