Typography.d.ts 845 B

12345678910111213141516171819
  1. import * as React from 'react';
  2. import type { JSX } from 'react';
  3. import type { DirectionType } from '../config-provider';
  4. export interface TypographyProps<C extends keyof JSX.IntrinsicElements> extends React.HTMLAttributes<HTMLElement> {
  5. id?: string;
  6. prefixCls?: string;
  7. className?: string;
  8. rootClassName?: string;
  9. style?: React.CSSProperties;
  10. children?: React.ReactNode;
  11. 'aria-label'?: string;
  12. direction?: DirectionType;
  13. }
  14. interface InternalTypographyProps<C extends keyof JSX.IntrinsicElements> extends TypographyProps<C> {
  15. /** @deprecated Use `ref` directly if using React 16 */
  16. setContentRef?: (node: HTMLElement) => void;
  17. }
  18. declare const Typography: React.ForwardRefExoticComponent<InternalTypographyProps<keyof JSX.IntrinsicElements> & React.RefAttributes<HTMLElement>>;
  19. export default Typography;