mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +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;
|