Marketing blocks

Header navigation

Full-width and floating site headers with desktop dropdown menus (simple, 2-col with sidebar, 4-col slim with footer, cards) and a mobile menu with expandable subnav. Figma: Header navigation.

import{ HeaderNavigation, type NavLink, type NavMenu } from "@pepulux/ui"

Full-width — simple dropdown

Click Product to open the menu.

Full-width — 4-col slim with footer

Floating — cards menu

floating draws the bar as a rounded card.

Signed in

Pass user to replace Log in / Sign up with an avatar.

Pepulux

Mobile menu

Below the md breakpoint the bar collapses to a hamburger; defaultMobileOpen forces it open.

Pepulux

Props

PropTypeDefaultDescription
linksNavLink[]—Links; add menu for a dropdown. NavMenu.layout: simple | two-col-sidebar | four-col-slim | cards
floatingbooleanfalseFigma Floating vs Full-width bar
defaultOpenIndexnumber | nullnullDropdown that starts open (Figma Open=True)
defaultMobileOpenbooleanfalseStart with the mobile menu open (Figma Mobile)
user{ name; email?; avatarSrc? }—Signed-in state
actionsReactNode—Replace the login / sign-up buttons
loginLabel / signupLabelstring"Log in" / "Sign up"Button labels
onLogin / onSignup() => void—Button handlers
logoTextstring"Pepulux"Brand text next to the logo