Give each page an id. A link pushes its page, and the back button returns.
settings-panel.tsx
NativeNavigationStack
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| path | NativeNavigationPath | — | The open pages, the first page first (controlled). The last one shows. |
| default | NativeNavigationPath | DEFAULT_PATH | The open pages at the start (uncontrolled). |
| on | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| page | string | ROOT_PAGE | The 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <header> attributes | — | Every other attribute goes to the <header>, with a ref. |
NativeNavigationBack
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| 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" | — | |||||
| class | string | — | |||||
| busy | boolean | — | 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. | ||||
| spinner | "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 | |||||||
| focusable | boolean | false | Whether 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>| Prop | Type | Default | Description |
|---|---|---|---|
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>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""sm""xs" | — | |
| variant | "default""muted""outline" | — | |
| to | string | — | The page that this row opens. |
| disabled | boolean | — | |
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. |
| EnterorSpace | On a row: opens its page. Focus goes to the back button of the new page. |
|---|---|
| Escape | Goes back one page. Focus returns to the row that opened the page. |
| Tab | Moves through the controls of the top page only. |
Built with
Installs with Native Navigation Stack







