UNPKG

@krowdy/kds-assets

Version:

React components that implement Google's Material Design.

19 lines (17 loc) 581 B
import React from 'react'; export var WIDTH = 406; export var HEIGHT = 305; export var aspect = WIDTH / HEIGHT; var Svg = function Svg(_ref) { var children = _ref.children, width = _ref.width, height = _ref.height, viewBox = _ref.viewBox; return /*#__PURE__*/React.createElement("svg", { fill: "none", height: height && width ? height : width ? width * 1 / aspect : height || HEIGHT, viewBox: viewBox ? viewBox : '0 0 406 305', width: height && width ? width : height ? height * aspect : width || WIDTH }, children); }; export default Svg;