Simal UI
Components

Sheet

WEB APPROXIMATION — Sheet wraps @gorhom/bottom-sheet, whose pan gestures and spring physics are built for native.

It presents here (the provider is wired in .storybook/preview.tsx) but the drag behaviour, backdrop timing and keyboard avoidance are not representative. Verify on a simulator.

It is imperative: nothing shows until present() is called on the ref that useSheetRef() hands back.

Import

import { Sheet } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
childrenSheet contents. Rendered eagerly, so anything expensive should be gated on the sheet being open.
snapPointsRest positions, as percentages or pixels. Defaults to one full-height stop.
refThe only way to open it: call present() on the ref. There is no visible prop.

On this page