Search docs/

ion-menu-button

Menu Button is component that automatically creates the icon and functionality to open a menu on a page.

Properties

autoHide

Description

Automatically hides the menu button when the corresponding menu is not active

Attributeauto-hide
Typeboolean
Defaulttrue

color

Description

The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.

Attributecolor
Typestring | undefined

disabled

Description

If true, the user cannot interact with the menu button.

Attributedisabled
Typeboolean
Defaultfalse

menu

Description

Optional property that maps to a Menu's menuId prop. Can also be start or end for the menu side. This is used to find the correct menu to toggle

Attributemenu
Typestring | undefined

type

Description

The type of the button.

Attributetype
Type"button" | "reset" | "submit"
Default'button'

CSS Custom Properties

NameDescription
--backgroundBackground of the menu button
--background-focusedBackground of the menu button when focused with the tab key
--background-hoverBackground of the menu button on hover
--border-radiusBorder radius of the menu button
--colorColor of the menu button
--color-focusedColor of the menu button when focused with the tab key
--color-hoverColor of the menu button on hover
--padding-bottomBottom padding of the button
--padding-endRight padding if direction is left-to-right, and left padding if direction is right-to-left of the button
--padding-startLeft padding if direction is left-to-right, and right padding if direction is right-to-left of the button
--padding-topTop padding of the button