Skip to main content

AppBar

The AppBar component is commonly used to accommodate menu icons, search bars, or images.

You can use the default slot of the AppBar to incorporate rows, columns, icons, or other assorted components, as illustrated below.

info

For more details about Vuetify’s usage of AppBar component, click AppBar page.
For more prop explanations, click Vuetify AppBar API page.

Props

AttributeDescriptionTypeDefault
absoluteHelps being sized to function as an application layout.booleanfalse
appAllows the selection of date range.booleanfalse
classAllows custom properties to take effect.stringundefined
clippedLeftDesignates that the application’s NavigationDrawer that is positioned on the left is below the app-bar.booleanfalse
clippedRightDesignates that the application’s NavigationDrawer that is positioned on the right is below the app-bar.booleanfalse
collapseControls the state of toolbar that the user interacts with.booleanfalse
darkApplies dark theme.booleanfalse
extendedExtends the size of the toolbar.booleanfalse
fadeImgOnScrollThe background image of a AppBar can fade on scroll.booleanfalse
fixedApplies position:fixed.booleantrue
prominentDisplays a larger vertically centered icon to draw more attention.booleanfalse
srcImage source. See img for details.stringundefined
visibleVisibility of AppBar component.booleantrue
tabindexDetermines the order of switching from one component to another with the tab key.stringundefined

Mobile Usage

You need to place your components within the slot of the AppBar component. This ensures proper rendering and functionality on mobile devices.

On mobile, the AppBar component serves as the top menu similar to the nav tag in HTML for web usage.

Usage Scenarios

  • When the app prop is set to true, the AppBar component can be sized to function as an application layout. This automatically applies the CSS position:fixed property to the component, ensuring it remains fixed at the top of the viewport as the user scrolls through the application.

    image

  • When the prominent prop is on, the height of the toolbar increases.

    image

  • AppBar can get collapsed view with collapse prop. Like on the example below, menu icon can be used for collapsed app-bar view.

    image

  • In case of using extension slot, app-bar with tabs functionality can be used.

    image

  • Add a child named default of type slot in the Children section. After adding the Children, you should use the Row-Col structure inside it.

  • The AppBar component must be within a VContainer, and you should assign a value of 0 to the padding areas of the VContainer.

Samples Qjson

AppBar