Photonix

TopNavigation

Main application header with navigation and user actions.

Preview

Photonix
Page ContentThis area represents the main page content layout.
Usage
import { TopNavigation } from '@photonix/ultimate';

<TopNavigation
  logo={<Logo height={48} />}
  centerContent={<SearchField />}
  rightContent={<UserMenu />}
/>

Component API

TopNavigation

Prop
Type
Default
Description
logo
React.ReactNode
-
Custom logo element. Defaults to Photonix Logo with height 48px.
centerContent
React.ReactNode
-
Content for the center section (Search, Tabs, etc.).
rightContent
React.ReactNode
-
Content for the right section (Actions, Profile, etc.).
hideLeftSection
boolean
false
Hide the left section (logo area). Useful when used without sidebar.
showDivider
boolean
true
Show bottom divider border.
hugLogo
boolean
false
If true, the left section (logo) width will fit its content instead of fixed 248px.
behavior
"static" | "sticky" | "hide-on-scroll"
'static'
Navigation behavior on scroll.
transparent
boolean
false
If true, the background will be transparent.
forceBackground
boolean
false
Force background to appear even when transparent mode is active (e.g., when MegaMenu is open).
className
string
-
Additional class name.
style
React.CSSProperties
-
Custom styles.

Variants

With Tabs

Navigation tabs positioned in the center, typically used for primary app sections.

Photonix
With Tabs
<TopNavigation
  centerContent={
    <Box w={600}>
      <Tabs tabs={[...] } activeTab="tab1" />
    </Box>
  }
/>

Workspace Switcher

Replace the default logo with an organization switcher item at the start of the top navigation.

hoangthuanthv's OrgFREE
Workspace Switcher
<TopNavigation
  logo={<WorkspaceSwitcher />}
  hugLogo
  centerContent={
    <SearchField placeholder="Search" variant="rounded" style={{ inlineSize: '100%' }} />
  }
  rightContent={<Avatar src="..." size="40" />}
/>

Sticky

The navigation sticks to the top of the page when scrolling down.

STICKY

Sticks to top on scroll

Scrollable ContentScroll down inside this area to see the TopNavigation stay pinned.
Sticky
<TopNavigation behavior="sticky" />

No Divider

Remove the bottom border for a cleaner appearance.

NO DIVIDER

No bottom border

No Divider
<TopNavigation showDivider={false} />

Transparent

Transparent background mode, useful for hero sections or landing pages.

TRANSPARENT

Transparent
<TopNavigation transparent showDivider={false} />

On this page

Preview
Component API
Variants
With Search
With Tabs
Custom Logo
Workspace Switcher
Sticky
No Divider
Transparent
Photonix UI - React Components, Templates & Figma Design System