@yuntijs/ui
Version:
☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps
15 lines (14 loc) • 518 B
TypeScript
import { DropDownProps as AntDropDownProps, Dropdown as AntDropdown } from 'antd';
import React from 'react';
export interface DropdownProps extends AntDropDownProps {
menuExtra?: {
position?: 'top' | 'bottom';
divider?: boolean;
content: React.ReactNode;
};
}
export type DropDownProps = DropdownProps;
export type { DropdownButtonProps, DropdownButtonType } from 'antd/es/dropdown';
export declare const Dropdown: React.FC<DropdownProps> & {
Button: typeof AntDropdown.Button;
};