@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
34 lines (30 loc) • 803 B
JavaScript
/**
* MSKCC 2021, 2024
*/
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import PropTypes from 'prop-types';
import React__default from 'react';
import cx from 'classnames';
import { usePrefix } from '../../internal/usePrefix.js';
function ListItem(_ref) {
let {
className,
...other
} = _ref;
const prefix = usePrefix();
const classNames = cx(`${prefix}--list__item`, className);
return /*#__PURE__*/React__default.createElement("li", _extends({
className: classNames
}, other));
}
ListItem.propTypes = {
/**
* Specify the content for the ListItem
*/
children: PropTypes.node,
/**
* Specify an optional className to apply to the underlying `<li>` node
*/
className: PropTypes.string
};
export { ListItem as default };