@equinor/eds-core-react
Version:
The React implementation of the Equinor Design System
29 lines (26 loc) • 593 B
JavaScript
import { forwardRef } from 'react';
import { TypographyNext } from './Typography.new.js';
import { jsx } from 'react/jsx-runtime';
const Paragraph = /*#__PURE__*/forwardRef(({
size = 'lg',
lineHeight = 'default',
weight = 'normal',
tracking = 'normal',
debug,
...rest
}, ref) => {
return /*#__PURE__*/jsx(TypographyNext, {
ref: ref,
as: "p",
family: "ui",
baseline: "grid",
size: size,
lineHeight: lineHeight,
weight: weight,
tracking: tracking,
debug: debug,
...rest
});
});
Paragraph.displayName = 'Paragraph';
export { Paragraph };