mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
29a15e2a5d
* refactor: use enum instead of multiple constants and refines types * fix: siganture and direction prop passing * Update Editable.tsx * refine types * test: update snap * style: prefer literal constants over enum * fix: refine types for typography * fix: restore ellipsis const * fix: restore ellipsis const * fix: restore textare importing
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;
|