Bottom Sheet

A sheet from the bottom edge with content of its own, closed by a drag down.

import { BottomSheet } from "@plexui/react-native"

A choice of actions is an Action Sheet.

Examples

Overview

Hero media

Scrolling content

Filters

Pages

Search at the foot

Platforms

iOS 26Android
Native componentSheetModal bottom sheet
LookBar with Close and a centered titleA sheet with 35dp top corners, no handle; Close in a glass circle concentric with the corner and a centered title
PagesA push from the trailing edge on a spring, the root 0.3 of the width aside under a dim; swipe backMaterial's shared axis X, 30dp and a fade through
SearchA bottom toolbar at the sheet's foot; while active the bar goes and the field rides the keyboardA search field at the top of the content, under the title
From a viewzoomFrom: the sheet zooms out of the view's frame and back into it, as iOS 18's zoom transitionThe sheet slides up as any other

On Android the content and the actions stand 12dp from the sheet's sides, as a page's groups; a screen that keeps its content at Material's compact 16dp sets --bottom-sheet-android-padding-inline.

API

BottomSheet

PropTypeDefaultDescription
openboolean—Shows the sheet (required)
onOpenChange(open: boolean) => void—Called with false when a tap on the dim, a drag down, Close or Back closes it (required)
titleReactNode—A title in the sheet's bar: centered on iOS, at the start on Android
hero{ media?: ReactNode; mediaAspectRatio?: number; icon?: ReactNode; title: ReactNode; description?: ReactNode; tone?: "accent" | "secondary" | "success" | "warning" | "danger"; mediaEdge?: "fade" | "edge"; mediaPlacement?: "above" | "backdrop"; align?: "center" | "leading"; textInset?: "content" | "actions"; mediaIcon?: ReactNode }—A hero header at the top of the content instead of a title in the bar: a picture or a video edge to edge at the sheet's top under the bar (media, at mediaAspectRatio, 16 / 9 by default, fading into the sheet, or ending on a distinct edge with mediaEdge="edge"; behind the words, taking no room, with mediaPlacement="backdrop"), a symbol, a large title, centered or at the start with align="leading", on the content's sides or the actions' line (textInset), a mark over the media (mediaIcon); the bar keeps Close alone
childrenReactNode—The content; it scrolls when it is taller than the screen. BottomSheet.Footer pins actions under it; BottomSheet.Toolbar sets a search at its foot; BottomSheet.Page opens a page over it
floatingboolean | "auto"falseiOS 26: the sheet floats 8pt in from the sides and bottom, its top corners 36pt and its bottom ones 44pt; "auto" floats a sheet short of the screen only (large, and a content sheet that reaches the top, meet the edges); by default the sheet meets the edges; a bottom Toolbar inside reads the safe area less the 8, and useSheetFloatInset() gives the number (8 floating, else 0) to an app's own chrome on the safe area. Android keeps its sheet at the edge
actionReactNode—The bar's trailing action across from Close: a NavigationButton action="confirm", the bar's prominent action, gray while disabled; or a word that acts on the list under it, a Button variant="ghost" (Select All, Edit): on iOS a glass capsule in the label color, on Android the bar's glass pill. The title stays in the bar's middle, Close's side taking the word's width
detent"content" | "medium" | "large" | number"content"The sheet's height: as tall as its content, half the screen, as tall as it can be (right under the status bar, and 10pt lower for each open sheet under it, on iOS; at the status bar on Android), or a height in points; a fixed height leaves the room under short content empty
dismissiblebooleantrueA tap on the dim, a drag down, Close, Android's back and Escape close it; Close is drawn only then
zoomFromRefObject<View>—iOS: the view the sheet zooms out of as it opens and back into as it closes, as iOS 18's zoom transition (Music's player from its mini player): its frame and corners grow to the sheet's on the sheet's spring, the content scaled from the view's width and fading in over the first fifth, and shrink back into wherever the view stands then, from a drag too. A ref of the app's content in a TabBar accessory, or of a card. Android slides, Reduce Motion fades
zoomRadiusnumberhalf the view's heightThe corner radius of the view the sheet zooms from
aria-labelstring—Accessible name when there is no title
closeLabelstring"Close"Accessible name of what closes the sheet: Close on iOS, the dim above the sheet on Android
contentStyleStyleProp<ViewStyle>—Style of the sheet's content area
testIDstring—Test id

BottomSheet.Footer

PropTypeDefaultDescription
childrenReactNode—The actions, top to bottom; pinned under the content, which scrolls above them
styleStyleProp<ViewStyle>—Style of the footer

BottomSheet.Page

PropTypeDefaultDescription
openboolean—The page stands over the sheet's root, or over the open page before it among the children (required)
onOpenChange(open: boolean) => void—Called with false by Back, a swipe back (iOS), Escape and Android's back (required)
titleReactNode—The page's title in its bar
actionReactNode—The bar's trailing action, as the sheet's own; one both screens have stays in place through the move
backLabelstring"Back"Accessible name of Back
childrenReactNode—The page's content; a BottomSheet.Footer among it pins actions under it, a BottomSheet.Toolbar a search at its foot
groupedboolean—The page holds grouped Lists; the sheet's own setting by default
contentStyleStyleProp<ViewStyle>—Style of the page's content area
testIDstring—Test id of the page

BottomSheet.Toolbar

PropTypeDefaultDescription
childrenReactNode—The bar's parts, as a bottom Toolbar's: a Toolbar.Content fill with a search Input, and while active a Toolbar.Trailing with a NavigationButton action="close" that ends it
activebooleanfalseThe search is active (focused or holding a query): on iOS the sheet's bar goes and the content rises into its room
placement"bottom" | "top""bottom"Where the search stands on iOS: at the sheet's foot, or under its bar as iOS 27.2's .searchable in a navigation bar's drawer (the field 44pt tall, 10pt under the bar's row and in line with Close, the content scrolling under both into one soft edge; while active the field rises into the bar's row, the X 10.67pt after it), as Emoji Picker sets it. Android sets the search at the top of the content either way
edge"soft" | "none""soft"The edge across the sheet under a bar at its foot while rows run on under it (iOS): soft, iOS 26's blur faded into the sheet's color behind the controls; none, no edge, the rows staying sharp up to the controls, which keep their own glass, and the content still ending over the field
testIDstring—Test id of the bar

Hooks

useSheetBounds() gives the bounds of the sheet around the caller: top, where its top stands at its fullest (the safe area's top, --bottom-sheet-top-gap and --bottom-sheet-stack-offset for each open sheet under it), and maxHeight, the most it is tall; null outside a sheet. Content of an app's own that sizes itself to the sheet reads these instead of its own numbers. useSheetFloatInset() gives how far the sheet around the caller floats over the screen's bottom: 8 in a floating iOS sheet, 0 at the edges and outside a sheet. Chrome of an app's own on the safe area takes the safe area less it. useInSheet() is true inside a BottomSheet, so chrome of an app's own takes the sheet's look as the kit's does: a search field drawn by hand puts its magnifier in its hint's gray (--toolbar-search-sheet-color), as Toolbar's search in a sheet, where a bar's magnifier is the text color.

useSheetScroll() gives the scroll handlers of a scroll view of the app's own in a sheet, a list with a search field of its own or a FlatList: spread them on it (<FlatList {...useSheetScroll()} />), and the sheet's bar shows its edge while that view stands scrolled under it, as over the sheet's own scroll (on iOS the veil over a blur, on Android the fade under the bar); back at its top the edge goes. On Android the sheet's drag reads that view's scroll as its own: a drag down moves the sheet only once the list it starts on is back at its top (each view of the app's own apart). Spread all of them (onScroll, onLayout, onContentSizeChange, onTouchStart); a handler of the app's own calls the hook's from its own. Outside a sheet it does nothing.