UNPKG

@grandlinex/react-components

Version:
24 lines (23 loc) 697 B
import React from 'react'; import { INames } from '@grandlinex/react-icons'; export interface MenuItem { key: string; icon?: INames; label: string; subMenu?: MenuItem[]; checkBox?: boolean; value?: boolean; fc?: () => Promise<void>; isLabel?: boolean; } declare const DropDownIconMenu: ({ menu, children, className, onChange, initialValue, left, top, isSubMenu, }: { menu: MenuItem[]; isSubMenu?: boolean; left?: boolean; top?: boolean; className?: string; onChange?: (key: string, mode?: boolean) => void; initialValue?: Record<string, boolean>; children?: React.ReactNode; }) => React.JSX.Element; export default DropDownIconMenu;