UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

23 lines 875 B
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; const _excluded = ["noBackground", "direction", "className"]; import React from 'react'; import classnames from 'classnames'; import E from '../Element'; const Blockquote = React.forwardRef((_ref, ref) => { let { noBackground, direction = 'horizontal', className } = _ref, props = _objectWithoutProperties(_ref, _excluded); return React.createElement(E, _extends({ as: "blockquote", skeletonMethod: "font", innerRef: ref, className: classnames(className, noBackground && 'dnb-blockquote--no-background', direction === 'vertical' && 'dnb-blockquote--top') }, props)); }); Blockquote._supportsSpacingProps = true; export default Blockquote; //# sourceMappingURL=Blockquote.js.map