Skip to content
中文

Tab barTabBar

The tab bar at the bottom of the screen, for switching among a product’s top-level areas.

Demo

Usage

Inside <nav class="hao-tabbar"> go three to five .hao-tabbar__items, each a 24px icon plus one word; the current page carries aria-current="page". You supply the icons and the words.

  • Three to five items. With two, use a segmented control; past six, rethink the structure.
  • One word per item: two characters in Chinese, no more than eight letters in English. There is always text under the icon.
  • The current item is tint, the rest ink-tertiary; no fill, dot, or underline.
  • It uses the material frosted glass, is fixed to the bottom, and leaves room for the safe area below.
  • The tab bar only navigates; actions like “New” don’t belong in it.