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.
20 lines
514 B
20 lines
514 B
4 years ago
|
import Omit from 'omit.js';
|
||
|
import { FunctionalComponent } from 'vue';
|
||
|
import Base, { BlockProps, 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']);
|
||
|
|
||
|
export default Paragraph;
|