@scaleflex/icons
Version:
SVG icons as React components
25 lines • 1.17 kB
JavaScript
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["color", "size", "ref"];
import React from 'react';
export var Square = function Square(_ref) {
var _ref$color = _ref.color,
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
_ref$size = _ref.size,
size = _ref$size === void 0 ? 14 : _ref$size,
ref = _ref.ref,
rest = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/React.createElement("svg", _extends({
"data-icon-name": "Square",
ref: ref,
width: size,
height: size,
viewBox: "0 0 51 50",
fill: "none",
xmlns: "http://www.w3.org/2000/svg"
}, rest), /*#__PURE__*/React.createElement("path", {
d: "M42.25 1H9.25C5.1145 1 1.75 4.3645 1.75 8.5V41.5C1.75 45.6355 5.1145 49 9.25 49H42.25C46.3855 49 49.75 45.6355 49.75 41.5V8.5C49.75 4.3645 46.3855 1 42.25 1ZM46 41.5C46 43.5677 44.3177 45.25 42.25 45.25H9.25C7.18225 45.25 5.5 43.5677 5.5 41.5V8.5C5.5 6.43225 7.18225 4.75 9.25 4.75H42.25C44.3177 4.75 46 6.43225 46 8.5V41.5Z",
fill: color
}));
};
export default Square;