React Storefront
|

MenuIcon

A menu icon that animates transitions between open and closed states.

Import
import MenuIcon from 'react-storefront/MenuIcon'

Props

NameTypeDefaultDescription
openboolfalse

Set to true when the menu is open, otherwise false

labelbooltrue

Set to false to hide the text "menu" underneath the button when the menu is closed.

OpenIconunion : string |
func

The icon to display when the menu is closed

CloseIconunion : string |
func
Close

The icon to display when the menu is open

CSS API

You can override all the class names injected by Moov-PWA thanks to the classes property. This property accepts the following keys:

  • root
  • icon