UNPKG

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