Menu

Register on Lenra

Element of type Menu

menu

The menu component.

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

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

Properties

AttributeDescriptionType
typeThe type of the elementstring ("menu")
childrenThe menu itemscomponent[]