DXDashboardNavbar

DXDashboardNavbar

A responsive top navigation bar component for Laravel dashboards with user menu, search functionality, and sidebar toggle.

Live Examples

Props

NameTypeRequiredDefaultDescription
user{ name: string; email: string; [key: string]: any } | nullNonullCurrent user object with name and email
pageTitlestringNoDashboardPage title displayed in the navbar

Events

NameParametersDescription
toggle-sidebarnoneEmitted when the hamburger menu is clicked to toggle the sidebar

Slots

NameDescriptionScoped Props
menu-iconCustom hamburger menu icon (default: three horizontal lines SVG)-
searchSearch input or component for the centre of the navbar-
user-menuComplete custom user menu (replaces default dropdown). Receives user as slot prop-
user-iconCustom user avatar/icon. Receives initial (first letter of name) as slot prop-
user-menu-itemsCustom dropdown menu items for the user dropdown. Receives user as slot prop-

Extended Component

This is a custom component that extends beyond simple Bootstrap Vue Next wrappers, providing additional functionality specific to Laravel dashboards.

Features

  • Responsive Design: Adapts to different screen sizes with mobile-friendly layout
  • User Avatar: Automatically generates avatar with user initials
  • Flexible Search: Customisable search slot for your search implementation
  • Sticky Positioning: Stays at the top of the page when scrolling
  • Customisable Slots: Multiple slots for complete customisation of layout and functionality