FormItemLabel.d.ts 699 B

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