mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
14 lines
414 B
TypeScript
14 lines
414 B
TypeScript
import * as React from 'react';
|
|
import type { BlockProps } from './Base';
|
|
import Base 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);
|