Files
ant-design/components/typography/Paragraph.tsx
lijianan db2b6c93f6 chore: code style optimization (#55450)
* chore: code style optimization

* update
2025-10-25 10:24:24 +08:00

20 lines
503 B
TypeScript

import * as React from 'react';
import type { BlockProps } from './Base';
import Base from './Base';
export interface ParagraphProps
extends BlockProps<'div'>,
Omit<React.HTMLAttributes<HTMLDivElement>, 'type' | keyof BlockProps<'div'>> {}
const Paragraph = React.forwardRef<HTMLElement, ParagraphProps>((props, ref) => {
const { children, ...restProps } = props;
return (
<Base ref={ref} {...restProps} component="div">
{children}
</Base>
);
});
export default Paragraph;