@atlaskit/menu
Version:
A list of options to help users navigate, or perform actions.
25 lines (24 loc) • 907 B
TypeScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
import type { CustomItemComponentProps, CustomItemProps } from '../types';
interface CustomItemTypeGenericHackProps {
<TComponentProps>(props: CustomItemProps<TComponentProps> & {
ref?: any;
} & Omit<TComponentProps, keyof CustomItemComponentProps>): JSX.Element | null;
}
/**
* __Custom item__
*
* @deprecated
* CustomItem must not be used and will be deleted soon. Custom menu items are not supported.
* Use ButtonItem or LinkItem instead. If you need a custom list item, do not use `@atlaskit/menu`.
*
* A custom item is used to populate a menu with items that can be any element.
*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/menu/docs/custom-item)
* - [Code](https://atlaskit.atlassian.com/packages/design-system/menu)
*/
declare const CustomItem: CustomItemTypeGenericHackProps;
export default CustomItem;