UNPKG

@talend/react-bootstrap

Version:

Bootstrap 3 components built with React

30 lines 852 B
import classNames from 'classnames'; import React from 'react'; import elementType from 'prop-types-extra/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; import { jsx as _jsx } from "react/jsx-runtime"; const propTypes = { componentClass: elementType }; const defaultProps = { componentClass: 'div' }; class Row extends React.Component { render() { const { componentClass: Component, className, ...props } = this.props; const [bsProps, elementProps] = splitBsProps(props); const classes = getClassSet(bsProps); return /*#__PURE__*/_jsx(Component, { ...elementProps, className: classNames(className, classes) }); } } Row.propTypes = propTypes; Row.defaultProps = defaultProps; export default bsClass('row', Row); //# sourceMappingURL=Row.js.map