@talend/react-components
Version:
Set of react components.
22 lines (21 loc) • 625 B
JavaScript
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