UNPKG

752 BTypeScriptView Raw
1import * as React from 'react';
2import type { ColProps } from '../grid/col';
3import type { TooltipProps } from '../tooltip';
4import type { RequiredMark } from './Form';
5import type { FormLabelAlign } from './interface';
6export type WrapperTooltipProps = TooltipProps & {
7 icon?: React.ReactElement;
8};
9export type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
10export interface FormItemLabelProps {
11 colon?: boolean;
12 htmlFor?: string;
13 label?: React.ReactNode;
14 labelAlign?: FormLabelAlign;
15 labelCol?: ColProps;
16 requiredMark?: RequiredMark;
17 tooltip?: LabelTooltipType;
18}
19declare const FormItemLabel: React.FC<FormItemLabelProps & {
20 required?: boolean;
21 prefixCls: string;
22}>;
23export default FormItemLabel;