'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var clsx = require('clsx');
var jsxRuntime = require('react/jsx-runtime');

const Section = ({
  as: Element = 'div',
  children,
  className,
  withHorizontalPadding = false,
  role = undefined,
  ...restProps
}) => {
  return /*#__PURE__*/jsxRuntime.jsx(Element, {
    className: clsx.clsx('np-section', className, {
      'np-section--with-horizontal-padding': withHorizontalPadding
    }),
    role: role,
    ...restProps,
    children: children
  });
};

exports.default = Section;
//# sourceMappingURL=Section.js.map
