Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 803 Bytes

menu.mdx

File metadata and controls

32 lines (27 loc) · 803 Bytes

import PropertyTable from '../../components/propertyTable'; import CodeBlock from '../../components/codeBlock'; import schema from '../../../../api/components/menu.schema.json'; import {jsonData} from '../../utils'; export const json = { ...jsonData(schema), categories: [ "interaction" ] };

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.

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

Properties