Rebar UI

1.1

order

MobileTabBar

Bottom bar with four destinations, a badge and an active tab.

Tideline mobileTap a tab: the screen above follows
Today

Draft launch checklist

Research

PN

Book crew interviews

Ops

LS

Icon audit

Design

MC
Calendar
Fri 24 Oct

Harbour launch

09:00, Maya

Mobile design review

14:00, Jonas

Badge
Dots
Links
Compact bar via --rebar-tab-bar-* properties (49px, 24px icons, 10px labels, regular weight)

In context

ProjectsThe bar under a real list, with the current tab marked
Projects

Harbour rebrand

12 of 14 done

Tideline mobile

Review, 3 open

Crew interviews

Late by 2 days

Rota export

Done

This week

7 tasks due, 3 today.

Props

PropTypeRequiredDefault
itemsMobileTabBarItem[]Yes—
activeIndexnumber | undefinedNo—
defaultActiveIndexnumber | undefinedNo0
onActiveChange((index: number) => void) | undefinedNo—
renderLink((props: { href: string; children: ReactNode; className?: string | undefined; onClick?: (() => void) | undefined; "aria-current"?: "page" | undefined; }) => ReactNode) | undefinedNo—
classNamestring | undefinedNo—
position"fixed" | "static" | undefinedNofixed
aria-labelstring | undefinedNoPrimary
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

Accessibility

A plain <nav aria-label="Primary"> of real, keyboard-focusable <button> or <a> targets (renderLink for a framework router). Every item is at least 44×44 CSS px and always shows both an icon and a label. The active item carries aria-current="page".

data-rebar-* attributes

data-rebar-component="mobile-tab-bar" on the <nav>; data-rebar-part="item" on each item wrapper.

Migrating to Ant Design

AntD has no direct equivalent; a bottom tab bar is a mobile-native pattern. antd-mobile's TabBar is the closer sibling library if the migration target is genuinely mobile.

Tokens

Custom properties, set on the component or any ancestor. The default is what applies when one is unset.

PropertyDefault
--rebar-tab-bar-active-colorvar(--rebar-color-text-primary, #212121)
--rebar-tab-bar-active-weightvar(--rebar-font-weight-bold)
--rebar-tab-bar-colorvar(--rebar-color-text-secondary, #757575)
--rebar-tab-bar-gapvar(--rebar-space-xs, 4px)
--rebar-tab-bar-icon-font-sizeinherit
--rebar-tab-bar-icon-line-heightinherit
--rebar-tab-bar-icon-size20px
--rebar-tab-bar-item-gap3px
--rebar-tab-bar-item-min-height44px
--rebar-tab-bar-item-paddingvar(--rebar-space-xs, 4px)
--rebar-tab-bar-item-radius14px
--rebar-tab-bar-label-line-height1.2
--rebar-tab-bar-label-sizeinherit
--rebar-tab-bar-min-height56px
--rebar-tab-bar-paddingvar(--rebar-space-xs, 4px) var(--rebar-space-sm, 8px)
--rebar-tab-bar-padding-bottomvar(--rebar-space-xs, 4px)
--rebar-tab-bar-safe-areaenv(safe-area-inset-bottom, 0px)
--rebar-tab-bar-weightvar(--rebar-font-weight-medium)