VAppBar
The VAppBar component is a primary navigation toolbar that appears at the top or bottom of your application. It supports scroll behaviors, collapsing, elevation changes, and extends the VToolbar component.Usage
Basic Example
Props
Controls the visibility of the app bar.
Defines how the app bar behaves on scroll. Can be one or more of: Available behaviors:
hide, fully-hide, inverted, collapse, elevate, fade-image.hide- Hides when scrolling down, shows when scrolling upfully-hide- Completely hides including extensioninverted- Inverts the scroll behavior (hide when scrolling up)collapse- Collapses to title bar onlyelevate- Adds elevation when scrolledfade-image- Fades background image on scroll
Sets the position of the app bar.
Sets the height of the app bar in pixels.
Applies specified color to the app bar.
Puts the app bar into a collapsed state.
Removes the app bar’s box-shadow.
Applies a floating style to the app bar.
Adjusts the vertical spacing of the app bar.
Applies position: absolute to the app bar.
Sets the elevation (box-shadow) of the app bar.
Specifies a background image for the app bar.
Specifies a title text for the toolbar.
The amount of scroll distance in pixels before the scroll behavior activates.
Assigns a specific name for layout registration.
Adjusts the order in which the app bar appears in the layout.
Applies a border to the app bar.
Applies border radius to the app bar.
Events
Emitted when the visibility state changes.
Slots
VAppBar inherits all slots from VToolbar:The default slot for toolbar content.
Slot for content at the start of the toolbar.
Slot for content at the end of the toolbar.
Slot for custom title content.
Slot for custom image content.
Slot for extension content below the main toolbar.
Scroll Behaviors
Hide on Scroll
The app bar hides when scrolling down and reappears when scrolling up. The behavior is disabled if there isn’t enough scrollable space on the page.
Elevate on Scroll
Collapse on Scroll
Combined Behaviors
Examples
With Navigation Icon
With Extension
Prominent
When using scroll behaviors, ensure your content has sufficient height to trigger scrolling. The scroll behavior may not activate on short pages.