Put one ThumbBarItem per tab in the bar. The bar sets no position, so place it at the bottom of the screen yourself.
app-tabs.tsx
ThumbBar
<nav>| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | null | — | The value of the current tab (controlled). Pass the route's value for links. |
| default | string | null | null | The first current tab (uncontrolled). |
| on | — | Called with the value of a tab the person picks: a tap, a click, or the end of a scrub. | |
| ...props | <nav> attributes | — | Every other attribute goes to the <nav>, with a ref. |
ThumbBarItem
<button>| Prop | Type | Default | Description |
|---|---|---|---|
| disabled | boolean | false | |
| value | string | (readonly string[] & string) | — | The value of this tab. The bar compares it with its value. |
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 | <button> attributes | — | Every other attribute goes to the <button>, with a ref. |
ThumbBarIcon
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ThumbBarLabel
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
ThumbBarActions
| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| value | string | — | The value of the tab that holds these actions. | |||||||||||||||||||||||||||||||||||||||||||||||||
| children | ReactNode | — | The ThumbBarAction buttons, placed on the arc in order. | |||||||||||||||||||||||||||||||||||||||||||||||||
| side | number | 14 | The gap from the bar to the arc, in px. | |||||||||||||||||||||||||||||||||||||||||||||||||
From Base UIMenu.RootBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| loop | boolean | true | Whether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys. | |||||||||||||||||||||||||||||||||||||||||||||||||
| highlight | boolean | true | Whether moving the pointer over items should highlight them. Disabling this prop allows CSS :hover to be differentiated from the :focus (data-highlighted) state. | |||||||||||||||||||||||||||||||||||||||||||||||||
| modal | boolean | true | Determines if the menu enters a modal state when open. - true: user interaction is limited to the menu: document page scroll is locked and pointer interactions on outside elements are disabled. - false: user interaction with the rest of the document is allowed. On touch devices, a true modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior. Nested menus ignore this prop, and menus opened by hover are never modal. | |||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
ThumbBarAction
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||
| label | string | — | The name of the action, for screen readers and the type-ahead. The icon is the children. | ||||||||||||||||||||||
From Base UIMenu.ItemBase UI docs | |||||||||||||||||||||||||
| on | — | The click handler for the menu item. | |||||||||||||||||||||||
| disabled | boolean | false | Whether the component should ignore user interaction. | ||||||||||||||||||||||
| id | string | — | |||||||||||||||||||||||
| |||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||
| Tab | Moves to the next tab of the bar. |
|---|---|
| EnterorSpace | Opens the tab that has focus. |
| Arrow Up | Opens the actions of the tab that has focus. |
| Arrow LeftorArrow Right | Moves between the actions on the arc. |
| Escape | Closes the actions and puts focus back on the tab. |











