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
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | — | No | Child content |
start | ReactNode | — | No | Left section content |
center | ReactNode | — | No | Center section content |
end | ReactNode | — | No | Right section content |
height | string | number | 56 | No | Height of the topbar |
bordered | boolean | true | No | Whether topbar has bottom border |