Navbar

A responsive navigation bar with mobile menu support.

Installation

bash
npx @smicolon/cli add navbar

Run init once per project before adding components. See Installation.

Preview

Components

  • Navbar: Main container
  • NavbarBrand: Logo/brand area
  • NavbarContent: Content sections
  • NavbarMenu: Navigation menu
  • NavbarLink: Navigation links
  • NavbarItem: Generic navbar items
  • NavbarToggle: Mobile menu toggle

Props

PropTypeDefaultDescription
stickybooleantrueSticks to the top on scroll.
borderedbooleantrueShows the bottom border.
childrenReactNode—The navbar’s parts.
NavbarContent{ align: "start" | "center" | "end" }—A section aligned to the start, centre or end.
classNamestring—Extra classes for the component.