UNPKG

@talend/react-components

Version:
22 lines (21 loc) 625 B
import classNames from 'classnames'; import PropTypes from 'prop-types'; import theme from './LengthBadge.module.scss'; /** * Return a badge with the given length value. */ import { jsx as _jsx } from "react/jsx-runtime"; export default function LengthBadge({ lengthValue, className }) { return /*#__PURE__*/_jsx("sup", { className: classNames(theme['tc-length-badge'], 'tc-length-badge', 'badge', className), children: lengthValue }, "length-badge"); } LengthBadge.propTypes = { lengthValue: PropTypes.number.isRequired, className: PropTypes.string }; //# sourceMappingURL=LengthBadge.component.js.map