Skip to main content
Every overlay renders into a root portal, locks page scrolling, traps TV remote focus inside itself, and closes on the remote’s Back button or Escape.

Sheet

boolean
required
Visibility.
() => void
required
Called on drag-down, scrim tap, Back or Escape.
ReactNode
Sheet title.
boolean
default:"true"
Show the drag handle.
boolean
default:"true"
Drag down to dismiss.
boolean
default:"true"
Drag up to grow toward full height.
('medium' | 'large')[]
Fixed heights to rest at, like iOS sheet detents: medium is half the screen, large all of it. The sheet opens at the first one; drag between them, and down from the lowest to close. Without detents the sheet is as tall as its content.
(detent: 'medium' | 'large') => void
Called when the sheet settles at another detent.
In the desktop shell, and in a browser window at least 768 px wide with a mouse, the sheet opens as a centered panel instead of sliding up from the bottom. The props stay the same. When the keyboard opens, the sheet rides up on top of it and a focused field is scrolled into view. Don’t wrap sheet content in a KeyboardAvoidingView; that would pad twice.

ActionSheet

Each action has label, icon?, destructive? and onPress. cancelLabel sets the cancel row’s text (default 'Cancel'); null hides it.

Dialog

dismissable (default true) controls whether a scrim tap or Back closes it. For a form rather than a short message, give it a width (default 380; it never outgrows the window) and a footer. The footer stays pinned under the content while a long form scrolls, so its buttons are always in reach. Point a submit button in the footer at its form with form="<id>":
'sm' | 'md' | 'lg' | 'xl' | 'full'
default:"'md'"
Maximum width: 400, 560, 760, 1000 px, or the viewport minus a margin.
boolean
Edge to edge with no margin or radius.
boolean
default:"true"
Scrim tap and Back close it.
boolean
Show the title row with a close button. Defaults to on when there is a title.

useConfirm

Imperative confirm and alert dialogs that return promises. Available anywhere inside UIProvider.
confirm takes title?, message?, confirmLabel?, cancelLabel?, danger? and resolves true or false. alert takes title?, message?, okLabel?. With UIProvider native the dialog takes the iOS or Material look in the mobile shell; with systemDialogs (on by default in the desktop shell) it becomes the OS’s own alert. See UIProvider.

ConfirmDialog

useConfirm resolves as soon as the user answers. When the dialog has to stay up while the request is in flight, drive a ConfirmDialog from your own state instead:
boolean
default:"true"
Style the confirm button as destructive. The default confirm label is “Delete”.
boolean
The request is on its way: the confirm button spins and the dialog can’t be dismissed.
Also takes confirmLabel?, cancelLabel? and locale?.

LogoutConfirm

A sign-out confirmation with a checkbox to end every session on this device. When ticked, the logout link carries session=all. The link always comes from the SDK’s logoutUrl.
string
Where to return after logout. Defaults to the current origin.
boolean
Start with the box ticked.
object
Text overrides: title, message, allSessions, allSessionsHint, confirm, cancel.
({ url, allSessions }) => void
Handle the navigation yourself. Without it, the dialog navigates to the link.
Items have label, icon?, onClick, destructive? and disabled?, or are { separator: true }. Also takes placement? and matchWidth?.

ContextMenu

Long-press (or right-click) actions for an element, the way each platform does them:
  • iOS: the element lifts over a blurred, dimmed screen, and the menu opens next to it.
  • Android: a Material menu pops up where the finger is.
  • Desktop and web: right-click opens it at the cursor; the keyboard’s menu key or Shift+F10 opens it on a focused element.
A long press never also counts as a tap on the element. Opening the menu adds a history entry, so Android’s back button closes the menu rather than the screen behind it.
ContextMenuItem[]
required
Each item has label, onPress, and optionally icon, destructive, disabled, shortcut (a hint shown on desktop, such as “⌘E”) and keys (a key combination that runs the item while the element has keyboard focus). { separator: true } draws a divider.
boolean
No menu for now.
number
default:"450"
How long a press must be held, in ms.
ReactNode
iOS only: what a tap would open, shown large above the menu instead of the lifted element (“peek”). Keep it light: a cover and a few lines.
() => void
Tapping the preview opens it for real (“pop”).
The menu follows UIProvider’s look. In the Android shell with systemDialogs, and in the desktop shell by default, it uses the system menu.

useMenuButton

The same menu opened by a tap on a button: a nav bar’s pull-down menu on iOS, Material’s overflow menu, a desktop menu button.
It returns show(button), the node to render, and isOpen.

ReportSheet

A sheet to report content or an account to moderators. The sheet owns the form; you send the report with your own API call.
({ category, note? }) => Promise<unknown> | void
required
Send the report. A rejection keeps the sheet open with an error.
ReactNode
What is being reported, shown above the reasons.
string[]
The reasons that make sense here, in this order. Defaults to all of REPORT_CATEGORIES: child_safety, harassment, inappropriate, spam, impersonation, copyright, other.
string
Preselected reason. Without one, the reporter has to pick.
(category) => string
Your own wording for a reason. Use it with custom categories too.
boolean
default:"true"
Show the free-text field.
number
default:"0 / 1000"
Note length limits. 0 makes the note optional.
(error: unknown) => string
Word a failed send, for example with your server’s message.
() => void
After a successful send, before the sheet closes.
labels overrides any text, including each category’s label.

MediaViewer

Full-screen photos and videos, the way a photos app shows them: pinch or double-tap to zoom, swipe sideways between items, drag down to close, tap to hide the bar. It opens out of the thumbnail and closes back into it. Arrow keys step through items and Escape closes; on desktop, ⌘ or Ctrl with the scroll wheel zooms.
MediaItem[]
required
Each has src, and optionally type ('image' or 'video'; videos play and only swipe and close), alt, width / height (lets the zoom start before the image loads), thumb (shown at once while src loads; a video’s poster) and caption.
number | null
required
The item showing, or null when closed.
() => void
required
Called on close.
string
required
Accessible name of the close button.
(index: number) => void
A swipe, arrow key or button moved to another item.
(index: number) => HTMLElement | null
The thumbnail each item opened from. Without it the viewer fades in and out.
(item, index) => ReactNode
Buttons at the end of the top bar: share, save, delete.
(index, count) => ReactNode
The counter in the bar. Defaults to “2 / 5”.
string
Accessible names of the step buttons.
boolean
default:"true"
Add a history entry on open, so Android’s back button closes the viewer. Turn it off if your router already puts the viewer in the URL.

Tooltip

Shows on hover and on focus. Props: label, placement?, delay? (default 350 ms).

Popover

The low-level anchored overlay that Menu and Tooltip are built on. It flips and clamps to stay on screen, and closes on an outside click, Back or Escape.
Props: open, onClose, anchorRef, placement? (default bottom-start), gap? (default 6), matchWidth?. computePosition is exported for custom anchored UI.