ant-design/components/typography/Paragraph.tsx
Minh Quy 445e6c6bca
feat: Support ref for Title, Text, Paragraph (#34847)
* feat: Support ref for Title, Text, Paragraph

* feat: Add tests for Title, Paragraph and Text
2022-04-05 13:02:32 +08:00

13 lines
388 B
TypeScript

import * as React from 'react';
import Base, { BlockProps } from './Base';
export interface ParagraphProps extends BlockProps {
onClick?: (e?: React.MouseEvent<HTMLDivElement>) => void;
}
const Paragraph: React.ForwardRefRenderFunction<HTMLDivElement, ParagraphProps> = (props, ref) => (
<Base ref={ref} {...props} component="div" />
);
export default React.forwardRef(Paragraph);