@zendeskgarden/react-typography
Version:
Components relating to typography in the Garden Design System
45 lines (42 loc) • 1.11 kB
JavaScript
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
import '../styled/StyledBlockquote.js';
import '../styled/StyledCode.js';
import '../styled/StyledCodeBlock.js';
import '../styled/StyledCodeBlockContainer.js';
import '../styled/StyledCodeBlockLine.js';
import '../styled/StyledCodeBlockToken.js';
import '../styled/StyledEllipsis.js';
import { StyledFont } from '../styled/StyledFont.js';
import '../styled/StyledIcon.js';
import '../styled/StyledList.js';
import '../styled/StyledListItem.js';
import '../styled/StyledParagraph.js';
const XL = forwardRef((_ref, ref) => {
let {
isBold,
tag,
...other
} = _ref;
return React.createElement(StyledFont, Object.assign({
$size: "extralarge",
$isBold: isBold,
ref: ref,
as: tag
}, other));
});
XL.displayName = 'XL';
XL.propTypes = {
tag: PropTypes.any,
isBold: PropTypes.bool
};
XL.defaultProps = {
tag: 'div'
};
export { XL };