Skip to content
Components94 / 118

Dash Header

A light dashboard top bar. Switching section fills the tab with accent ink while the old one drains; the search widens on focus (press /), the gear turns, the bell swings with a lagging clapper as notifications land, and the account menu drops open on a spring.

HeaderDashboardSearchTabsNotificationsMenuGSAP
Switch sections, open the avatar menuPoint at the gear and bell, press / to search

Tweak

LIVE

Look

Accent

Name beside avatar

Props

12 props
  • tabsstring[]
    The sections.
  • valuestring
    Controlled section.
  • defaultValuestring
    Starting section (the first by default).
  • onValueChange(value) => void
    Called when the section changes.
  • user{ name, role?, avatar? }
    The signed-in user.
  • notificationsnumber
    Unread count; raising it rings the bell.default 0
  • onSearch(query) => void
    Called as the search text changes.
  • menu{ label, onSelect? }[]
    Items in the account menu.
  • accentstring
    Logo tile, active tab and badge colour.default "#2f6b45"
  • logoReactNode
    Replaces the logo tile's mark.
  • showNameboolean
    Show name and role beside the avatar.default false
  • classNamestring
    Extra classes.