UNPKG

antd-mobile

Version:
33 lines (32 loc) 1.18 kB
import React from 'react'; import type { ReactNode } from 'react'; import { PopupProps } from '../popup'; import { NativeProps } from '../../utils/native-props'; export declare type DropdownProps = { activeKey?: string | null; defaultActiveKey?: string | null; closeOnMaskClick?: boolean; closeOnClickAway?: boolean; onChange?: (key: string | null) => void; arrow?: ReactNode; getContainer?: PopupProps['getContainer']; } & NativeProps; export declare type DropdownRef = { close: () => void; }; declare const Dropdown: React.ForwardRefExoticComponent<{ activeKey?: string | null | undefined; defaultActiveKey?: string | null | undefined; closeOnMaskClick?: boolean | undefined; closeOnClickAway?: boolean | undefined; onChange?: ((key: string | null) => void) | undefined; arrow?: ReactNode; getContainer?: PopupProps['getContainer']; } & { className?: string | undefined; style?: (React.CSSProperties & Partial<Record<never, string>>) | undefined; tabIndex?: number | undefined; } & React.AriaAttributes & { children?: React.ReactNode; } & React.RefAttributes<DropdownRef>>; export default Dropdown;