UNPKG

pouncejs

Version:

A collection of UI components from Panther labs

21 lines (19 loc) 746 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import Section from '../Section'; /** * Increases the heading level of all `Heading` components inside it by 1. * * **NOTE**: this component is functionally the same as `<Section />`, but semantically * it renders an `<article>` tag instead of a `<section>` tag. */ export var Article = function Article(_ref) { var _ref$as = _ref.as, as = _ref$as === void 0 ? 'article' : _ref$as, rest = _objectWithoutPropertiesLoose(_ref, ["as"]); return /*#__PURE__*/React.createElement(Section, _extends({ as: as }, rest)); }; export default Article;