• Docs
  • Components
  • Navbar

Navbar - Aspect UI

The Navbar component serves as the primary navigation header for your application. It supports branding, links, dropdowns, mobile responsiveness, and sticky positioning.

Table of Contents#


PropTypeDefaultDescription
childrenReactNode-Content inside the Navbar, typically NavbarCollapse, buttons, or links.
classNamestring''Additional CSS classes for the navbar container.
collapseBreakpointsm md lg xl 2xl all'md'Screen size breakpoint at which the navbar collapses.
...restHTMLAttributes<HTMLElement>-Additional HTML attributes spread to the navbar container.

PropTypeDefaultDescription
childrenReactNode-Content inside the collapsible navbar section.
classNamestring undefined-Additional CSS classes for the collapsible container.
...restHTMLAttributes<HTMLDivElement> & MotionProps-Any other HTML or animation props passed to the collapsible container.

PropTypeDefaultDescription
classNamestring''Additional CSS classes for the collapse toggle button.
iconReactNode-Optional icon to display inside the collapse toggle button.
...restButtonHTMLAttributes<HTMLButtonElement>-Other native button attributes passed to the collapse button.

PropTypeDefaultDescription
childrenReactNode-Content inside the Navbar container.
classNamestring''Additional CSS classes for the Navbar container wrapper.
...restHTMLAttributes<HTMLElement>-Additional HTML attributes passed to the container element.

PropTypeDefaultDescription
childrenReactNode-Content inside the Navbar item, such as a link or button.
classNamestring''Additional CSS classes for the Navbar item.
...restHTMLAttributes<HTMLElement>-Additional HTML attributes passed to the Navbar item element.

PropTypeDefaultDescription
childrenReactNode-Content inside the Navbar list, typically multiple NavbarItem components.
classNamestring''Additional CSS classes for the Navbar list container.
...restHTMLAttributes<HTMLElement>-Additional HTML attributes passed to the Navbar list container.