UNPKG

839 BTypeScriptView Raw
1import type { FC, ReactNode } from 'react';
2import React from 'react';
3import { NativeProps } from '../../utils/native-props';
4export declare type DropdownItemProps = {
5 key: string;
6 title: ReactNode;
7 active?: boolean;
8 highlight?: boolean;
9 forceRender?: boolean;
10 destroyOnClose?: boolean;
11 onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
12 arrowIcon?: ReactNode;
13 /**
14 * @deprecated use `arrowIcon` instead
15 */
16 arrow?: ReactNode;
17 children?: ReactNode;
18} & NativeProps;
19declare const Item: FC<DropdownItemProps>;
20export default Item;
21declare type DropdownItemChildrenWrapProps = {
22 onClick?: () => void;
23} & Pick<DropdownItemProps, 'active' | 'forceRender' | 'destroyOnClose' | 'children'>;
24export declare const ItemChildrenWrap: FC<DropdownItemChildrenWrapProps>;