ant-design/components/typography/Paragraph.tsx
2023-05-06 15:49:37 +08:00

14 lines
409 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) => (
<Base ref={ref} {...props} component="div" />
));
export default Paragraph;