mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
445e6c6bca
* feat: Support ref for Title, Text, Paragraph * feat: Add tests for Title, Paragraph and Text
13 lines
388 B
TypeScript
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);
|