UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

35 lines (31 loc) 837 B
/** * 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 Form(_ref) { let { className, children, ...other } = _ref; const prefix = usePrefix(); const classNames = cx(`${prefix}--form`, className); return /*#__PURE__*/React__default.createElement("form", _extends({ className: classNames }, other), children); } Form.propTypes = { /** * Provide children to be rendered inside of the <form> element */ children: PropTypes.node, /** * Provide a custom className to be applied on the containing <form> node */ className: PropTypes.string }; export { Form as default };