@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
27 lines (23 loc) • 556 B
JavaScript
/**
* MSKCC 2021, 2024
*/
import PropTypes from 'prop-types';
import React__default from 'react';
import { PrefixContext } from '../../internal/usePrefix.js';
function ClassPrefix(_ref) {
let {
children,
prefix
} = _ref;
return /*#__PURE__*/React__default.createElement(PrefixContext.Provider, {
value: prefix
}, children);
}
ClassPrefix.propTypes = {
children: PropTypes.node,
/**
* The value used to prefix the CSS selectors used by Carbon components
*/
prefix: PropTypes.string.isRequired
};
export { ClassPrefix };