mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
ac5a06027e
This reverts commit ea8ed28209
.
14 lines
409 B
TypeScript
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;
|