import * as React from 'react'; import { Menu, MenuProps, PopperRefHandle } from '@fluentui/react-northstar'; const MenuExamplePositioningUpdateShorthand = () => { const [height, setHeight] = React.useState(50); const popperRef = React.useRef(); const items: MenuProps['items'] = [ { content: 'Editorials', key: 'editorials', menu: { items: [ { active: true, content: 'item1', key: '1' }, { content: 'item2', key: '2' }, { content: (
An item3 with some long content
), key: '3', }, ], popper: { position: 'above', popperRef }, }, menuOpen: true, }, ]; return (

); }; export default MenuExamplePositioningUpdateShorthand;