rsuite
Version:
A suite of react components
29 lines (28 loc) • 1.2 kB
TypeScript
import React from 'react';
import type { BoxProps } from '../internals/Box';
import type { IconProps } from '@rsuite/icons/Icon';
import type { HTMLPropsWithoutSelect } from '../internals/types';
import type { DeprecatedDropdownItemProps } from '../Dropdown/types';
export interface NavbarDropdownItemProps<T = any> extends BoxProps, DeprecatedDropdownItemProps, HTMLPropsWithoutSelect {
/** Active the current option */
active?: boolean;
/** Whether to display the divider */
divider?: boolean;
/** Disable the current option */
disabled?: boolean;
/** The value of the current option */
eventKey?: T;
/** Displays a custom panel */
panel?: boolean;
/** Set the icon */
icon?: React.ReactElement<IconProps>;
/** The submenu that this menuitem controls (if exists) */
submenu?: React.ReactElement;
/** Select the callback function for the current option */
onSelect?: (eventKey: T, event: React.SyntheticEvent) => void;
}
/**
* @private
*/
declare const NavbarDropdownItem: import("../internals/types").InternalRefForwardingComponent<"li", NavbarDropdownItemProps<any>, never> & Record<string, never>;
export default NavbarDropdownItem;