MenuItem.d.ts 702 B

12345678910111213
  1. import * as React from 'react';
  2. import type { MenuItemType } from './interface';
  3. export interface MenuItemProps extends Omit<MenuItemType, 'label' | 'key' | 'ref'>, Omit<React.HTMLAttributes<HTMLLIElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onSelect'> {
  4. children?: React.ReactNode;
  5. /** @private Internal filled key. Do not set it directly */
  6. eventKey?: string;
  7. /** @private Do not use. Private warning empty usage */
  8. warnKey?: boolean;
  9. /** @deprecated No place to use this. Should remove */
  10. attribute?: Record<string, string>;
  11. }
  12. declare const _default: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLElement>>;
  13. export default _default;