antd
Version:
An enterprise-class UI design language and React components implementation
35 lines (34 loc) • 2.48 kB
TypeScript
import type { ReactNode } from 'react';
import * as React from 'react';
type RenderNode = React.ReactNode | ((props: any) => React.ReactNode);
export default function useIcons({ suffixIcon, contextSuffixIcon, clearIcon, contextClearIcon, menuItemSelectedIcon, contextMenuItemSelectedIcon, removeIcon, contextRemoveIcon, loading, loadingIcon, contextLoadingIcon, searchIcon, contextSearchIcon, multiple, hasFeedback, showSuffixIcon, feedbackIcon, showArrow, componentName, }: {
suffixIcon?: React.ReactNode;
contextSuffixIcon?: React.ReactNode;
clearIcon?: React.ReactNode;
contextClearIcon?: React.ReactNode;
menuItemSelectedIcon?: RenderNode;
contextMenuItemSelectedIcon?: RenderNode;
removeIcon?: RenderNode;
contextRemoveIcon?: RenderNode;
loading?: boolean;
loadingIcon?: React.ReactNode;
contextLoadingIcon?: React.ReactNode;
searchIcon?: React.ReactNode;
contextSearchIcon?: React.ReactNode;
multiple?: boolean;
hasFeedback?: boolean;
feedbackIcon?: ReactNode;
prefixCls: string;
showSuffixIcon?: boolean;
showArrow?: boolean;
componentName: string;
}): {
clearIcon: string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
suffixIcon: React.JSX.Element | (({ open, showSearch }: {
open: boolean;
showSearch: boolean;
}) => React.JSX.Element | null) | null;
itemIcon: string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | ((props: any) => React.ReactNode) | null | undefined;
removeIcon: string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.ReactPortal | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | ((props: any) => React.ReactNode) | null | undefined;
};
export {};