Skip to content

Appbar

BsAppbar is a lightweight component which is placed at the top of the page as a container for page title, logo, menus, and action buttons which is usually known as Navigation Bar.

Examples

Basic usage

With button and menus

CSS Variables

As CSS technology evolves, Vue MDBootstrap introduces local CSS variables on .md-appbar and global CSS variables for better customization.

Updated in v2.2.0
scss
.md-appbar {
  --md-appbar-bg: var(--appbar-background);
  --md-appbar-color: var(--appbar-foreground);
  --md-appbar-height: var(--appbar-height, 4rem);
  --md-appbar-padding: #{vars.$padding-sm (vars.$padding-md - 0.25) vars.$padding-sm vars.$padding-md};
  --md-appbar-title-font-size: 1.5rem;
  --md-appbar-title-font-weight: var(--font-weight-normal) ;
}
css
:root {
  --appbar-background: var(--background);
  --appbar-foreground: var(--foreground);
  --appbar-height: 4rem;
}

API Reference

BsAppbar

BsAppbarItems

Optional component to create a component's container inside <bs-appbar> which may contains buttons, menus and others.

BsAppbarTitle

Lightweight component to put page title on Appbar.

Released under the BSD-3-Clause License.