Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
AppBar Class Reference

A Material 3 Expressive top app bar. More...

Inheritance diagram for AppBar:

Detailed Description

A Material 3 Expressive top app bar.

AppBar provides small, medium flexible, and large flexible variants. Flexible variants expand to show larger wrapping title content and collapse into the small layout as their scrollTarget scrolls. The inherited navigationAction and actions properties accept AppBarAction objects, with lower-priority actions moving into an adaptive overflow menu.

Place an AppBar in a page or application window header:

MD.AppBar {
variant: MD.AppBar.MediumFlexible
title: qsTr("Library")
subtitle: qsTr("Recently added")
scrollTarget: pageFlickable
navigationAction: MD.AppBarAction {
text: qsTr("Back")
icon.name: "arrow_back"
}
actions: [
text: qsTr("Favorite")
icon.name: "favorite"
}
]
}
Describes an action shown by an AppBar or SearchAppBar.

Safe-area insets and right-to-left layout mirroring are applied automatically. The background and expandedBackground remain edge-to-edge.

For more information see the Material Design 3 app bar guidelines.

Definition at line 44 of file AppBar.qml.


The documentation for this class was generated from the following file: