ShipNow LogoShipNow

Header

A responsive header component with logo, navigation links, and authentication features

Preview

Header Component

Features

  • 🎨 Responsive design with mobile menu support
  • 🔐 Built-in authentication integration
  • 🌐 Language switching capability
  • 🎭 Dark/light theme toggle
  • 💳 Credits display for authenticated users
  • 📱 Mobile-friendly hamburger menu

Usage

Import and use the Header component in your page:

page.tsx
import Header from '@/components/header';
 
export default function Page({ children }) {
  return (
    <>
      <Header />
      {children}
    </>
  );
}

Customization App Name

You can change the app name by setting the NEXT_PUBLIC_APP_NAME environment variable.

NEXT_PUBLIC_APP_NAME="Your App Name"

You can change the logo by replacing the public/logo.svg file.

You can change the links by setting the header.links in the messages/en.json file.

messages/en.json
{
  "header": {
    "links": [
      { title: 'Features', href: '/features' },
      { title: 'Pricing', href: '/pricing' },
      { title: 'Docs', href: '/docs' }
    ]
  }
}

On this page

ShipNow LogoGet ShipNow