UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

15 lines (14 loc) • 519 B
import React from 'react'; import type { AllowClearConfig } from '@rc-component/util'; export type AllowClear = boolean | AllowClearConfig | undefined; interface UseAllowClearOptions { allowClear: AllowClear; clearIcon?: React.ReactNode; contextAllowClear?: AllowClear; contextClearIcon?: React.ReactNode; defaultAllowClear?: boolean; defaultLabel?: string; componentName: string; } export declare const useAllowClear: (options: UseAllowClearOptions) => AllowClearConfig | false; export {};