Lenra Docs
Register on Lenra
  • Home
  • Getting started
    Open/Close
  • Guides
    Open/Close
  • Features
    Open/Close
  • References
    Open/Close
  • Contribute

    Menu

    This component is meant to be used along with the menuItem component because there is no real interest of using it alone.

    Examples

    Simple menu

    You can handle your app menu by mixing menu and menuItem in your app, but you can also place any types of components in your menu.

    {
        "type": "menu",
        "children": [
            {
                "type": "text",
                "value": "Child"
            }
        ]
    }
    

    Properties

    AttributeDescriptionType
    _typeThe type of the element
    • menu
    childrenThe menu itemsarray