--- title: Menu sidebar_label: Menu --- import { StoryWithControls } from '../../../../src/components/StorybookWrapper'; # Menu Navigation menu component supporting horizontal, vertical, and inline modes. Based on Ant Design Menu with Superset styling. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { return ( ); } ``` ## Vertical Menu ```tsx live function VerticalMenu() { return ( ); } ``` ## Menu with Icons ```tsx live function MenuWithIcons() { return ( Dashboards ), key: 'dashboards', }, { label: ( <> Charts ), key: 'charts', }, { label: ( <> Datasets ), key: 'datasets', }, { label: ( <> SQL Lab ), key: 'sqllab', }, ]} /> ); } ``` ## Props | Prop | Type | Default | Description | | ------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | `mode` | `string` | `"horizontal"` | Menu display mode: horizontal navbar, vertical sidebar, or inline collapsible. | | `selectable` | `boolean` | `true` | Whether menu items can be selected. | | `items` | `any` | `[{"label":"Dashboards","key":"dashboards"},{"label":"Charts","key":"charts"},{"label":"Datasets","key":"datasets"},{"label":"SQL Lab","key":"sqllab"}]` | - | ## Import ```tsx import { Menu } from '@superset-ui/core/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/Menu/Menu.stories.tsx). :::