40+ landing page components for ReactBrowse now

Primitives

Navbar

Responsive navigation bar with brand, nav links, and CTA buttons. Collapses to a hamburger menu on mobile.

Installation

npm install @trinkui/react

Import

import { Navbar } from "@trinkui/react";

Sticky with Blur

Combine sticky and blur for a frosted-glass navbar that stays at the top of the viewport.

Without Border

Navbar Props

PropTypeDefaultDescription
logo
ReactNode—Custom logo element; overrides brandName
brandName
string—Brand text when no logo is provided
links
NavLink[][]Navigation links { label, href, active? }
primaryAction
{ label: string; href: string }—Primary CTA button
secondaryAction
{ label: string; href: string }—Secondary CTA button
bordered
booleantrueShow a bottom border
blur
booleanfalseApply backdrop-blur effect (pairs well with sticky)
sticky
booleanfalseStick to the top of the viewport on scroll
className
string—Additional CSS classes

NavLink Props

PropTypeDefaultDescription
labelrequired
string—Link text
hrefrequired
string—Link URL
active
booleanfalseHighlight as the current page

Accessibility

  • Uses a <nav> element with aria-label="Main navigation".
  • The mobile hamburger button has aria-expanded to communicate open/closed state.
  • The hamburger button includes aria-label="Toggle navigation menu".
  • All interactive elements have visible focus-visible styles.