Navigation Header
A responsive site navigation bar with the Zostel logo, horizontal nav links, a Book Now CTA button, and a mobile hamburger menu toggle.
Preview
ZOSTEL
Usage
tsx
import { NavigationHeader } from "zostel-ui";
<NavigationHeader
links={[
{ label: "Hostels", href: "/hostels" },
{ label: "Destinations", href: "/destinations" },
{ label: "Trips", href: "/trips" },
{ label: "About", href: "/about" },
]}
ctaLabel="Book Now"
ctaHref="/book"
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
links | { label: string; href: string; active?: boolean }[] | — | Array of navigation link items |
ctaLabel | string | "Book Now" | Call-to-action button text |
ctaHref | string | — | CTA button link URL |
logo | ReactNode | — | Custom logo element (defaults to Zostel logo) |
sticky | boolean | false | Whether the header sticks to the top on scroll |
transparent | boolean | false | Use a transparent background |
className | string | — | Additional CSS classes |
linksType:
{ label: string; href: string; active?: boolean }[]Default: —
Array of navigation link items
ctaLabelType:
stringDefault: "Book Now"
Call-to-action button text
ctaHrefType:
stringDefault: —
CTA button link URL
logoType:
ReactNodeDefault: —
Custom logo element (defaults to Zostel logo)
stickyType:
booleanDefault: false
Whether the header sticks to the top on scroll
transparentType:
booleanDefault: false
Use a transparent background
classNameType:
stringDefault: —
Additional CSS classes