TabBar is the phone's bottom navigation. It pairs with Sidebar: at and below showBelow (default "s") the bar holds the four places people go most, in thumb reach, and its last item, More, opens the Sidebar's drawer with everything else. Above that breakpoint the bar hides and the Sidebar is the navigation again. It arrived in 3.1.
The preview shows the bar at every width (showBelow={false}) inside a phone-sized frame. In an app it is fixed to the bottom of the screen and appears only on phones.
Each TabBarItem fills its share of the bar, its icon centred over a short label. One word fits best; a longer label ends in an ellipsis.
- selected marks the current page: a soft tile that fills the item's slot, and aria-current="page" on its link.
- badge takes a count, read out as unread and printed as 9+ past nine, or true for a dot when no number is worth showing. 0 hides it.
- href goes through the app's Link adapter, like NavItem; pass onClick instead for an item that opens something.
TabBarSidebarTrigger is the bar's last item. It opens the Sidebar's phone drawer and stays selected while the drawer is open; pass selected when the current page is one only the drawer lists. Give the Sidebar mobileSide="bottom" and its drawer rises from the bar as a sheet instead of sliding in from the left. Both need a SidebarProvider around them.
The bar sits over the page, so it leaves a spacer of its own height where it is rendered: put it at the end of the scrolling column and the last content never hides under it. The spacer shows and hides with the bar, and both leave room for the phone's safe area at the bottom. Pass spacer={false} when your layout already makes room.
The bar is a nav; give it an aria-label. The current item carries aria-current="page", a badge's count is read as "3 unread", and the More trigger reports aria-haspopup="dialog" and whether the drawer is open.