@jinshuju/field-icons-react
Version:
First, install `@jinshuju/field-icons-react` from npm:
30 lines • 1.24 kB
JavaScript
const React = require("react");
function FieldIconButton({
title,
titleId,
...props
}, svgRef) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
"data-slot": "icon",
ref: svgRef,
"aria-labelledby": titleId
}, props), title ? /*#__PURE__*/React.createElement("title", {
id: titleId
}, title) : null, /*#__PURE__*/React.createElement("g", {
clipPath: "url(#a)"
}, /*#__PURE__*/React.createElement("path", {
fillRule: "evenodd",
d: "M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm1.508-.153c-.005.05-.008.101-.008.153v8A1.5 1.5 0 0 0 6 15.5h12a1.5 1.5 0 0 0 1.5-1.5V6A1.5 1.5 0 0 0 18 4.5H6a1.5 1.5 0 0 0-1.492 1.347ZM19.5 16.599V18a1.5 1.5 0 0 1-1.5 1.5H6A1.5 1.5 0 0 1 4.5 18v-1.401c.441.255.954.401 1.5.401h12c.546 0 1.059-.146 1.5-.401Z",
clipRule: "evenodd"
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
id: "a"
}, /*#__PURE__*/React.createElement("rect", {
width: 24,
height: 24
}))));
}
const ForwardRef = /*#__PURE__*/ React.forwardRef(FieldIconButton);
module.exports = ForwardRef;