PromoCursed/node_modules/antd/lib/form/hooks/useVariants.d.ts
2024-08-20 23:25:37 +04:00

8 lines
494 B
TypeScript

import type { Variant, ConfigProviderProps } from '../../config-provider';
type VariantComponents = keyof Pick<ConfigProviderProps, 'input' | 'inputNumber' | 'textArea' | 'mentions' | 'select' | 'cascader' | 'treeSelect' | 'datePicker' | 'timePicker' | 'rangePicker'>;
/**
* Compatible for legacy `bordered` prop.
*/
declare const useVariant: (component: VariantComponents, variant: Variant | undefined, legacyBordered?: boolean | undefined) => [Variant, boolean];
export default useVariant;