Skip to content

Thumb Bar

Pro

A floating tab bar for phone apps. A soft fill stretches from tab to tab, and you can slide your thumb along the bar to pick a tab.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Thumb Bar needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
29
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

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>
PropTypeDefaultDescription
valuestring | null—The value of the current tab (controlled). Pass the route's value for links.
defaultValuestring | nullnullThe first current tab (uncontrolled).
onValueChange—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>
PropTypeDefaultDescription
disabledbooleanfalse
valueRequiredstring | (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>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

ThumbBarLabel

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

ThumbBarActions

PropTypeDefaultDescription
valueRequiredstring—The value of the tab that holds these actions.
childrenReactNode—The ThumbBarAction buttons, placed on the arc in order.
sideOffsetnumber14The gap from the bar to the arc, in px.
From Base UIMenu.RootBase UI docs
loopFocusbooleantrueWhether to loop keyboard focus back to the first item when the end of the list is reached while using the arrow keys.
highlightItemOnHoverbooleantrueWhether moving the pointer over items should highlight them. Disabling this prop allows CSS :hover to be differentiated from the :focus (data-highlighted) state.
modalbooleantrueDetermines 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>
PropTypeDefaultDescription
classNamestring—
labelRequiredstring—The name of the action, for screen readers and the type-ahead. The icon is the children.
From Base UIMenu.ItemBase UI docs
onClick—The click handler for the menu item.
disabledbooleanfalseWhether the component should ignore user interaction.
idstring—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for the main views of a phone app.
  • Use render={<a href="/inbox" />} on each ThumbBarItem when a tab is a route, and pass the route value as value.
  • Use ThumbBarActions to give one tab an arc of round actions.
  • For the main navigation of a desktop app, use a Sidebar.
  • For a list of actions that opens from a button, use a Menu.
  • To pick a value with no panel or route, use a Segmented Control.
TabMoves to the next tab of the bar.
EnterorSpaceOpens the tab that has focus.
Arrow UpOpens the actions of the tab that has focus.
Arrow LeftorArrow RightMoves between the actions on the arc.
EscapeCloses the actions and puts focus back on the tab.

Each tab is a button or a link through render, so Tab moves through the bar.

Arrow Up opens the actions of a tab, and Escape puts focus back on that tab.

Each ThumbBarAction needs a label, because it shows only an icon.

Actions
fade · 150ms · ease-out (0, 0, 0.2, 1) · the actions pop up on the arc one after the other
  1. AddedThumb Bar.
Open the release