Skip to content
Gelatin UIAlpha

Native Navigation Stack

Free

A stack of pages in one panel, as on a phone: rows push a page, and the back button or Escape returns.

  • Base UI
  • React 19
  • Tailwind CSS 4

Added Nov 21, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Give each page an id. A link pushes its page, and the back button returns.

settings-panel.tsx

NativeNavigationStack

<div>
PropTypeDefaultDescription
pathNativeNavigationPath—The open pages, the first page first (controlled). The last one shows.
defaultPathNativeNavigationPathDEFAULT_PATHThe open pages at the start (uncontrolled).
onPathChange—Runs when a link, the back button, Escape, or a swipe asks for a new path.
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

NativeNavigationPage

<section>
PropTypeDefaultDescription
pagestringROOT_PAGEThe id of the page: a link names it with to, and path lists it.
...props<section> attributes—Every other attribute goes to the <section>, with a ref.

NativeNavigationBar

<header>
PropTypeDefaultDescription
...props<header> attributes—Every other attribute goes to the <header>, with a ref.

NativeNavigationBack

<button>
PropTypeDefaultDescription
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

NativeNavigationTitle

<h2>
PropTypeDefaultDescription
From Base UIUseRenderBase UI docs
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<h2> attributes—Every other attribute goes to the <h2>, with a ref.

NativeNavigationLink

<div>
PropTypeDefaultDescription
From Base UIUseRenderBase UI docs
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it when each choice opens a page of more choices, and people go back the same way.
  • Use defaultPath to open on a deep page, and path with onPathChange to keep the path in the URL or your state.
  • Use useNativeNavigation in a page to push or pop with your own button.
  • To switch between pages at the same level, use the Tabs.
  • To show where a page sits in a site, use the Breadcrumb.
EnterorSpaceOn a row: opens its page. Focus goes to the back button of the new page.
EscapeGoes back one page. Focus returns to the row that opened the page.
TabMoves through the controls of the top page only.

Each page is a section, named by its title.

The pages under the top page are inert, so Tab and a screen reader reach only the top page.

When a page closes, focus returns to the row that opened it.

Push
panel · the new page slides in from the end, and the page under it moves 30% to the start
Pop
panel · the top page slides out to the end, and the page under it slides back
Height
panel · the panel follows the height of the new page
Swipe back
instant · the page follows the finger; past 40%, or with a flick, it pops

Built with

Installs with Native Navigation Stack

Components
Button,Frame,Item
  1. AddedNative Navigation Stack, with Button, Frame, Item.
Open the release