Skip to content

[HOLD 3.1] TabBar: phone bottom navigation that pairs with Sidebar - #527

Merged
lorant-one merged 8 commits into
previewfrom
feat/tab-bar
Nov 24, 2026
Merged

lorant-one merged 8 commits into
previewfrom
feat/tab-bar

Conversation

@lorant-one

@lorant-one lorant-one commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

Lorant found Sigilio's phone nav (a hamburger and a workspace select) unimpressive, and asked whether core needs a better pattern. Sigilio got one in sigilio#84 on core 2.8 primitives. This PR moves that pattern into core, so every app on Sidebar v2 gets it. It's based on the 3.0 branch and held for 3.1; it should not go into the 3.0 freeze.

What it adds

  • TabBar: a fixed bar along the bottom edge for the four most used places.
    • Shown at and below showBelow, which defaults to s, the same edge where Sidebar becomes a drawer. It is hidden above that, where the Sidebar is the nav.
    • Sits on the page background behind a hairline and pads for env(safe-area-inset-bottom).
    • A spacer (on by default) leaves room for the bar, so the end of a page never sits under it.
  • TabBarItem: an icon over a short label, rendered through the Link adapter like NavItem.
    • Each item fills its whole slot (its share of the bar's width and height), with the icon and label centred, so the tap target is as large as it can be.
    • selected sets aria-current="page" and fills the slot with a soft tile, so the tap target and the highlight are the same shape (23 Nov, from Lorant's note on Tavilio's bar).
    • badge takes a count (shown as 9+ past nine, read as "n unread") or true for a dot.
  • TabBarSidebarTrigger: the last item, "More". It opens the Sidebar's phone drawer and shows as selected while the drawer is open.
  • Sidebar mobileSide="bottom": the phone drawer becomes a bottom sheet that rises from the More button. The default stays "left".
<SidebarProvider>
  <Sidebar aria-label="Workspace" mobileSide="bottom">…</Sidebar>
  <main>
    {children}
    <TabBar aria-label="Product">
      <TabBarItem href="/" icon="home" label="Overview" selected />
      <TabBarItem href="/clients" icon="people" label="Clients" />
      <TabBarItem href="/projects" icon="folder" label="Projects" />
      <TabBarItem href="/inbox" icon="inbox" label="Inbox" badge={3} />
      <TabBarSidebarTrigger label="More" />
    </TabBar>
  </main>
</SidebarProvider>

Also included: docs (a "With a tab bar" section in Sidebar's page, plus props tables), catalog seed entries, the ./components/TabBar subpath, render fixtures, and regenerated ai/ files.

Checks

  • tab-bar.test.tsx (9 tests) passes, covering: named navigation, current page, 9+ cap and unread text, spacer, axe, and More opening the sidebar as a bottom sheet and closing it from a link.
  • The full core suite passes: 333 files and 4668 tests.
  • pnpm typecheck passes, and Biome is clean on the touched files.

After 3.1

Sigilio swaps its own MobileNav for this once it's on 3.x. Aveiro, Tavilio and Stack can use the same pattern with Sidebar v2. Tavilio#293 and sigilio#131 already use the full-slot look.


Generated by Claude Code

TabBar, TabBarItem and TabBarSidebarTrigger: the four most used places
along the bottom edge in thumb reach, hidden above showBelow (default s,
Sidebar's own drawer edge). The last item, More, opens the Sidebar's phone
drawer; Sidebar's new mobileSide="bottom" makes that drawer a sheet that
rises from it. Current item aria-current=page on a pill, counts (9+) and
dots, safe-area padding, and a spacer so page ends never sit under it.

Built first in Sigilio (sigilio#84) on 2.8 primitives.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtxdGNyyxC6qG1tzHV1
The whole slot is the button, icon and label centred in it, and the
current item fills the slot with a soft tile instead of a pill over the
icon, so the tap target and the highlight are the same shape. Pressing
tints the whole slot. A 4px gap between items.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtybUWM9Z2AgZdqsQPo
@lorant-one
lorant-one changed the base branch from feat/3-0-breaking-cleanup to preview November 23, 2026 20:50
@lorant-one
lorant-one merged commit 1c47b01 into preview Nov 24, 2026
11 of 12 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
27 tasks done
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one
lorant-one deleted the feat/tab-bar branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants