You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/typography/Paragraph.tsx

21 lines
562 B

import type { FunctionalComponent } from 'vue';
import omit from '../_util/omit';
import type { BlockProps } from './Base';
import Base, { baseProps } from './Base';
const Paragraph: FunctionalComponent<BlockProps> = (props, { slots, attrs }) => {
const paragraphProps = {
...props,
component: 'div',
...attrs,
};
return <Base {...paragraphProps} v-slots={slots}></Base>;
};
Paragraph.displayName = 'ATypographyParagraph';
Paragraph.inheritAttrs = false;
Paragraph.props = omit(baseProps(), ['component']) as any;
export default Paragraph;