Vaadin WC API reference

Description

The Drawer Toggle component controls the drawer in App Layout component.

<vaadin-app-layout>
  <vaadin-drawer-toggle slot="navbar">Toggle drawer</vaadin-drawer-toggle>
</vaadin-app-layout>

Styling

The following shadow DOM parts are available for styling:

Part name Description
icon The icon element

The following state attributes are available for styling:

Attribute Description
focus-ring Set when the element is focused using the keyboard
focused Set when the element is focused

The following custom CSS properties are available for styling:

Custom CSS property
--vaadin-button-background
--vaadin-button-border-color
--vaadin-button-border-radius
--vaadin-button-border-width
--vaadin-button-font-size
--vaadin-button-line-height
--vaadin-button-margin
--vaadin-button-padding
--vaadin-button-text-color
--vaadin-icon-size

See Styling Components documentation.

Properties

ariaLabel

Type: string

disabled

Type: boolean

If true, the user cannot interact with this element.