Locale and Destinations Mega

About this block

Locale and Destinations MegaPRO

A travel bar with the brand, a Destinations trigger that drops a full-width band of region columns, plain links, and a language button showing the current code and currency that opens a floating list of languages with native names and currencies. On a phone a right drawer holds the links and regions with the language rows pinned to its bottom. Every panel stays in the markup and is toggled with CSS.

A travel bar with the brand, a Destinations trigger and plain links on the left, and a language button on the right that shows the current language code and currency. Destinations drops a full-width band of region columns; the language button opens a list of languages with their native names and currencies. On a phone a right drawer carries everything, with the language rows pinned to its bottom.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://beste.dev/r/navbar107?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://beste.dev/r-base/navbar107?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/navbar107.tsx plus the shadcn button primitive it uses.

Quick start

The installed file exports navbar107Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.

tsx
import { Navbar107, navbar107Demo } from "@/components/beste/block/navbar107";

export default function Page() {
  return <Navbar107 {...navbar107Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Navbar107 } from "@/components/beste/block/navbar107";

export default function Page() {
  return (
    <Navbar107
      brand="Meridian"
      destinations={{
        label: "Destinations",
        regions: [
          {
            title: "Europe",
            links: [
              { label: "Portugal", href: "/destinations/portugal" },
              { label: "Greece", href: "/destinations/greece" },
            ],
          },
          {
            title: "Asia",
            links: [
              { label: "Japan", href: "/destinations/japan" },
              { label: "Vietnam", href: "/destinations/vietnam" },
            ],
          },
        ],
      }}
      links={[
        { label: "Journeys", href: "/journeys" },
        { label: "Stays", href: "/stays" },
      ]}
      languages={[
        { code: "EN", name: "English", nativeName: "English", currency: "USD", current: true },
        { code: "DE", name: "German", nativeName: "Deutsch", currency: "EUR" },
      ]}
      button={{ label: "Plan a trip", href: "/plan" }}
      labels={{ menu: "Open menu", close: "Close menu", language: "Change language", languages: "Language and currency" }}
    />
  );
}

Props

PropTypeDefaultDescription
brandstring–Wordmark on the left
destinations{ label: string; regions: Region[] }–The mega trigger and its region columns
linksNavItem[][]Plain links after the Destinations trigger
languagesLanguage[][]Rows in the language list; the one with current: true is selected first
buttonActionButton–Action on the right; moves to the drawer footer on a phone
labels{ menu?: string; close?: string; language?: string; languages?: string }{}Mobile toggle names, the screen reader name of the language button and the list heading
classNamestring–Extra classes for the outer <header>
ts
type Region = {
  title: string;
  links: NavItem[];
};

type NavItem = {
  label: string;
  href: string;
};

type Language = {
  code: string;
  name: string;
  nativeName: string;
  currency: string;
  current?: boolean;
};

type ActionButton = {
  label: string;
  href: string;
  variant?: "default" | "outline" | "ghost" | "secondary";
};

Behavior notes

  • The Destinations band, the language card, the mobile scrim and the mobile drawer are server-rendered and always in the markup; each is shown or hidden with CSS classes rather than mounted on demand.
  • Only one desktop panel is open at a time: hovering or clicking Destinations or the language button opens its own panel and closes the other; hovering a plain link closes both.
  • Picking a language is client state only: the button label, the currency and the check follow it, and each row carries a lang attribute so its native name is read correctly. Wire the selection to your router or i18n setup.
  • Escape closes every panel and the drawer; a click outside the header and the pointer leaving the header close the desktop panels.
  • The drawer slides in from translate-x-full, locks body scroll while open, scrolls its links and regions on their own, and keeps the language rows and the button in a footer capped at 45vh.

More Navigation blocks

View all Navigation
PRO

navbar91

Store Categories Mega

PRO

navbar92

Searchable Resources Mega

PRO

navbar110

Headline Mega

Get Pro