Topbar

Application top navigation bar

SaaSNavigation

Overview

Topbar provides a horizontal navigation header with three content slots: start (branding/logo), center (search or navigation), and end (user menu/actions). It supports configurable height and an optional bottom border.

Usage

import { Topbar, TopbarMenu } from "@leanicon/web-builder-library/saas";

<Topbar
  start={<span className="font-semibold">Acme Inc.</span>}
  center={<div>Search...</div>}
  end={<TopbarMenu trigger={<button>User</button>} items={menuItems} />}
/>;

Variants

Default

Acme Inc.
Search...
U

Without Border

Acme Inc.
N

Minimal

M
N
U

Tall Height

Acme Inc.
U

Dark

Acme Inc.
Search...
U

Props

NameTypeDefaultRequiredDescription
childrenReactNode—NoChild content
startReactNode—NoLeft section content
centerReactNode—NoCenter section content
endReactNode—NoRight section content
heightstring | number56NoHeight of the topbar
borderedbooleantrueNoWhether topbar has bottom border