Pular para o conteúdo

Navbar

Este conteúdo não está disponível em sua língua ainda.

The Navbar component is used to build a responsive navigation header that can include branding, navigation items, and interactive controls.

It is designed to work seamlessly with responsive layouts, drawers, and mobile navigation patterns.

  • Responsive behavior: Supports adaptive layouts for mobile and desktop.
  • Composable structure: Uses slots/snippets for logo and navigation items.
  • Mobile-ready: Integrates with togglers and drawers.
  • Sticky or static modes: Can remain fixed or scroll with content.

navFree

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Magnam tenetur voluptates odit illum, autem, alias perspiciatis numquam tempora sequi voluptate, iste recusandae nesciunt suscipit. Quasi ipsa dolore tempora ea tempore!

Scroll Down

Scroll down to see the sticky effect.

navSticky

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Magnam tenetur voluptates odit illum, autem, alias perspiciatis numquam tempora sequi voluptate, iste recusandae nesciunt suscipit. Quasi ipsa dolore tempora ea tempore!

PropTypeDefaultDescription
idstringUnique identifier for the navbar instance.
isTranslucentbooleanfalseApplies a translucent background style.
stylestringInline style overrides for layout customization.
classstringOptional additional CSS classes.
PropTypeDefaultDescription
aria-currentstringIndicates the active navigation item.
classstringCustom styling for individual items.
PropTypeDefaultDescription
idstringUnique identifier for toggler state control.
checkedbooleanControls whether the navigation drawer is open.
onchangefunctionCallback triggered when toggler state changes.
  • Use Navbar.Toggler for mobile navigation control.
  • Keep navigation items minimal and meaningful.
  • Combine with Drawer for responsive mobile menus.
  • Use isTranslucent only when background context supports readability.
  • Ensure active states are clearly indicated using aria-current.