- Docs
- Components
- Console frame
Top bar
The scope bar of a Qeet console: the product, where you are in it, search, tools and account.
- Import
- @qeetrix/react/experimental
- Status
- ExperimentalSince 0.0.4
- Renders
<header>Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
The scope bar
Launcher, product, the scope path, search, tools and account, across the full width. Black in light and dark alike, under a 2px Ember line.
<TopBar
launcher={<IconButton icon={LayoutGridIcon} aria-label="Qeet products" tone="neutral" />}
logo={<QeetLogo variant="dark" height={20} />}
product="Qeet ID"
href="/"
context={<Scope />}
search={<TopBarSearch placeholder="Search or jump to…" shortcut={["⌘", "K"]} />}
actions={<IconButton icon={SettingsIcon} aria-label="Settings" tone="neutral" />}
account={<Avatar name="Priya Sharma" size="sm" />}
/>02
The scope path
context: organisation, then environment, outermost first; a slash before each. Each switcher opens a Menu.
<Menu>
<MenuTrigger render={<TopBarSwitcher mark="AC" label="Acme Pvt Ltd" />} />
<MenuContent>…</MenuContent>
</Menu>
<Menu>
<MenuTrigger render={<TopBarSwitcher status="success" label="Production" />} />
<MenuContent>…</MenuContent>
</Menu>03
Minimal
product alone is required: a product with one scope needs no path.
<TopBar
logo={<QeetLogo variant="dark" height={20} />}
product="Qeet Notify"
actions={<IconButton icon={BellIcon} aria-label="Notifications" tone="neutral" />}
account={<Avatar name="Priya Sharma" size="sm" />}
/>04
Narrow windows
Under 840px the scope path folds into one switcher and search hides; under 600px the product name hides behind the logo and the tools gather in one menu.
<TopBar … />