PageAI full logo

Landing Page Navigation / Header

Updated on

This component displays a top navigation / header bar with a main menu and a logo. On smaller screens, the main menu is hidden and a menu is displayed instead. The menu will open a side sheet with the main menu items.

Usage

import { LandingHeader } from '@/components/landing/LandingHeader';
import { LandingHeaderMenuItem } from '@/components/landing/LandingHeaderMenuItem';
<LandingHeader>
  <LandingHeaderMenuItem href="#" label="Home" />
  <LandingHeaderMenuItem href="#" label="Pricing" />
  <LandingHeaderMenuItem href="#" label="Articles" />
</LandingHeader>

Examples

With background

This adds a background to the navigation bar (centered on larger screens).

With button

With icon button (or other elements)

Variant

API Reference

Prop NameProp TypeRequiredDefault
logoComponent React.ReactElementNo-
children React.ReactElementYes-
withBackground booleanNofalse
variant 'primary' ǀ 'secondary'No'primary'
fixed booleanNofalse

More Examples

For more even more examples, see our Landing Page Component Examples page or see complete landing page examples by Exploring Our Landing Page Templates.

Landing Page Navigation / Header | PageAI - the best AI website builder for professionals