Skip to main content
  1. Docs
  2. Components
  3. 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

Import

top-bar.tsx
// Experimental: from the package's experimental entry, until it's stable.
import { TopBar, TopBarSwitcher, TopBarSearch } from "@qeetrix/react/experimental";

02

Props

And every native attribute of the element it renders.

PropTypeDefaultWhat it does
productstringrequiredThe product's name: "Qeet ID".
logoReactNode—The mark: <QeetLogo variant="dark" height={20} />.
href · renderstring · ReactElement—The identity's link home; a router link.
launcherReactNode—A Menu of Qeet products behind a neutral IconButton.
contextReactNode—The scope path: TopBarSwitchers, a slash before each.
searchReactNode—A TopBarSearch, centred; hidden below 840px.
actionsReactNode—Neutral IconButtons, after the AppShell's panel triggers.
accountReactNode—An Avatar trigger, after a rule.
TopBarSwitcher: label · mark · statusReactNode · ReactNode · status—The current scope; a small square of initials or a logo; a dot for an environment.
TopBarSearch: placeholder · shortcutstring · string[]required · —The prompt, which names it; the keys shown at its end. Wire the shortcut yourself.

03

Parts

Each part carries a data-slot, for tests and placement.

data-slotElementWhat it is
top-bar<header>Dark in both schemes, under a 2px Ember line.
top-bar-identity<a>The mark and the name.
top-bar-switcher<button>A scope step.
top-bar-search-trigger<button>The search.

04

The search shortcut

TopBarSearch shows the keys; the product wires them, and opens its CommandPalette.

console-top-bar.tsx
const [open, setOpen] = useState(false);

<TopBarSearch placeholder="Search or jump to…" shortcut={["⌘", "K"]} aria-keyshortcuts="Meta+K Control+K" onClick={() => setOpen(true)} />
<CommandPalette open={open} onOpenChange={setOpen} … />
Next — Top barAccessibility