Navbar

Navbar is a flexible container for navigation elements that helps organize content at the top of a page. It supports various layouts with start, center, and end sections for optimal content placement.

Basic Usage

Code Example
1.vue

Components

The Navbar components include the following:

  • Navbar - A flexible container for navigation elements.
  • NavbarStart - Container for elements at the start of the navbar.
  • NavbarCenter - Container for elements at the center of the navbar.
  • NavbarEnd - Container for elements at the end of the navbar.
  • NavButton - A button specifically styled for use in navigation.

The Navbar component is a container for navigation elements that helps organize content at the top of a page.

Navbar Props Type Description
is
any

Allows changing the element tag. Default is div.

glass
boolean

Enables the glass style for the navbar.

Navbar Slots Description
default

The default slot. Content to be displayed inside the navbar. Can contain NavbarStart, NavbarCenter, and NavbarEnd components.

The NavbarStart component is a container for elements that should appear at the start (left side) of the navbar.

NavbarStart Props Type Description
is
any

Allows changing the element tag. Default is div.

NavbarStart Slots Description
default

The default slot. Content to be displayed at the start of the navbar.

The NavbarCenter component is a container for elements that should appear at the center of the navbar.

NavbarCenter Props Type Description
is
any

Allows changing the element tag. Default is div.

NavbarCenter Slots Description
default

The default slot. Content to be displayed at the center of the navbar.

The NavbarEnd component is a container for elements that should appear at the end (right side) of the navbar.

NavbarEnd Props Type Description
is
any

Allows changing the element tag. Default is div.

NavbarEnd Slots Description
default

The default slot. Content to be displayed at the end of the navbar.

The NavButton component is a button specifically styled for use in navigation contexts like navbars and menus.

NavButton Props Type Description
active
boolean

Styles the button to appear active or selected. Default is false.

disabled
boolean

Styles the button to appear disabled and prevents interaction. Default is false.

NavButton Slots Description
default

The default slot. Content to be displayed inside the button.

Examples

A navbar with a brand button and an icon button at the end.

Code Example
2.vue

A navbar with a menu icon button, brand, and end icon button.

Code Example
3.vue

Colored Navbar

A navbar with a neutral background and content color.

Code Example
9.vue