Documentation

Documentation versions (currently viewingVaadin 24)

App Layout

Styling API reference for the App Layout component.

Style Properties

The following style properties can be used in CSS stylesheets to customize the appearance of this component.

To apply values to these properties globally in your application UI, place them in a CSS block using the html {…​} selector. See Lumo Style Properties for more information on style properties.

Feature Property Default Value

Drawer width

--vaadin-app-layout-drawer-width

16em

CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the Styling documentation for more details on how to style components.

Root element

vaadin-app-layout

Parts

Navbar

vaadin-app-layout::part(navbar)

Bottom "touch optimized" navbar

vaadin-app-layout::part(navbar bottom)

Drawer

vaadin-app-layout::part(drawer)

Drawer toggle

vaadin-drawer-toggle

Drawer toggle icon wrapper

vaadin-drawer-toggle::part(icon)

Drawer toggle icon

vaadin-drawer-toggle::part(icon)::before

States

Navbar on top of drawer

vaadin-app-layout[primary-section="navbar"]

Navbar next to drawer

vaadin-app-layout[primary-section="drawer"]

Drawer opened

vaadin-app-layout[drawer-opened]

Overlay drawer (small screen) mode

vaadin-app-layout[overlay]