TrademarkTrademark
Docs
Ctrl k
Search docs...
Components

Dialog

Updated: October 18, 2026
View on GitHub
Soon
Not released yet. This is on main and is not in any published version yet. It will not install today.

Dialog takes the same main props as on the web (open, onClose, title, description, footer) and opens as a bottom sheet, the shape phones use for a modal task. It slides up from the bottom edge, shows a grabber, and scrolls its content when it is taller than the screen allows. See the web Dialog for the same component in the browser.

Basic usage

The dialog is always controlled: keep open in state and close it in onClose. The close button, the Android back button and a tap on the backdrop all call onClose.

footer sits under the content, behind a top border, with its items at the end of the row.

Flush and clickaway

flush drops the sheet's padding around the content, for a list that runs edge to edge. closeOnClickaway={false} keeps the sheet open when the backdrop is tapped; the back button and the close button still close it. hideClose hides the close button.

Differences from the web

  • It is a bottom sheet, at most 90% of the screen's height, not a centred window.
  • It pads its bottom by the safe-area inset, so it clears the home indicator. Pass the insets to ThemeProvider, as shown on the overview.
  • The Android back button closes it.
  • There is no DialogProvider, no stacked dialogs and no base or stack props.

API reference

Prop
Type
Default
Description
openbooleanShows the sheet. Required.
onClose() => voidCalled by the close button, the back button and a tap on the backdrop. Required.
titleReactNodeThe heading, drawn as heading-strong-l.
descriptionReactNodeA line under the title.
childrenReactNodeThe content. It scrolls when the sheet is full.
footerReactNodeA row under the content, aligned to the end.
hideClosebooleanfalseHides the close button. The back button and the backdrop still close the sheet.
closeOnClickawaybooleantrueA tap on the backdrop closes the sheet.
flushbooleanfalseRemoves the padding around the content.
styleViewStyleStyle for the sheet.
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club