Chore: Added controls to ContextMenu story (#54373)

This commit is contained in:
Orlando Ortega Jr
2022-09-05 11:43:02 -04:00
committed by GitHub
parent 34fe7a1119
commit 042fbcc609
3 changed files with 48 additions and 31 deletions

View File

@@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { ContextMenu } from '../ContextMenu/ContextMenu';
interface WithContextMenuProps {
export interface WithContextMenuProps {
/** Menu item trigger that accepts openMenu prop */
children: (props: { openMenu: React.MouseEventHandler<HTMLElement> }) => JSX.Element;
/** A function that returns an array of menu items */