import React from 'react'; import type { IconProps } from '@rsuite/icons/Icon'; import type { BoxProps } from '../internals/Box'; import type { HTMLPropsWithoutSelect } from '../internals/types'; import type { DeprecatedDropdownItemProps } from './types'; interface DeprecatedDropdownMenuItemProps extends DeprecatedDropdownItemProps { /** * Whether to display the divider * * @deprecated Use dedicated component instead */ divider?: boolean; } export interface DropdownMenuItemProps extends BoxProps, DeprecatedDropdownMenuItemProps, HTMLPropsWithoutSelect { /** Active the current option */ active?: boolean; /** Disable the current option */ disabled?: boolean; /** The description of the current option */ description?: React.ReactNode; /** The value of the current option */ eventKey?: T; /** Displays a custom panel */ panel?: boolean; /** Set the icon */ icon?: React.ReactElement; /** The submenu that this menuitem controls (if exists) */ submenu?: React.ReactElement; /** * The dropdown item keyboard shortcut. * * @version 5.58.0 */ shortcut?: React.ReactNode; /** * Select the callback function for the current option */ onSelect?: (eventKey: T, event: React.SyntheticEvent) => void; } /** * The `` API * - When used inside ``, renders a `` * - Otherwise renders a `` */ declare const DropdownItem: import("../internals/types").InternalRefForwardingComponent<"li", DropdownMenuItemProps, never> & Record; export default DropdownItem;