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.
24 lines
682 B
24 lines
682 B
import type { ExtractPropTypes, FunctionalComponent } from 'vue';
|
|
import omit from '../_util/omit';
|
|
import Base, { baseProps } from './Base';
|
|
|
|
export const paragraphProps = () => omit(baseProps(), ['component']);
|
|
|
|
export type ParagraphProps = Partial<ExtractPropTypes<ReturnType<typeof paragraphProps>>>;
|
|
|
|
const Paragraph: FunctionalComponent<ParagraphProps> = (props, { slots, attrs }) => {
|
|
const paragraphProps = {
|
|
...props,
|
|
component: 'div',
|
|
...attrs,
|
|
};
|
|
|
|
return <Base {...paragraphProps} v-slots={slots}></Base>;
|
|
};
|
|
|
|
Paragraph.displayName = 'ATypographyParagraph';
|
|
Paragraph.inheritAttrs = false;
|
|
Paragraph.props = paragraphProps();
|
|
|
|
export default Paragraph;
|