PromoCursed/node_modules/antd/es/form/FormItemLabel.d.ts
2024-08-20 23:25:37 +04:00

23 lines
699 B
TypeScript

import * as React from 'react';
import type { ColProps } from '../grid/col';
import type { TooltipProps } from '../tooltip';
import type { FormLabelAlign } from './interface';
export type WrapperTooltipProps = TooltipProps & {
icon?: React.ReactElement;
};
export type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
export interface FormItemLabelProps {
colon?: boolean;
htmlFor?: string;
label?: React.ReactNode;
labelAlign?: FormLabelAlign;
labelCol?: ColProps;
tooltip?: LabelTooltipType;
vertical?: boolean;
}
declare const FormItemLabel: React.FC<FormItemLabelProps & {
required?: boolean;
prefixCls: string;
}>;
export default FormItemLabel;