@gechiui/icons
Version:
GeChiUI Icons package, based on dashicon.
40 lines (34 loc) • 856 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _element = require("@gechiui/element");
/**
* GeChiUI dependencies
*/
/** @typedef {{icon: JSX.Element, size?: number} & import('@gechiui/primitives').SVGProps} IconProps */
/**
* Return an SVG icon.
*
* @param {IconProps} props icon is the SVG component to render
* size is a number specifiying the icon size in pixels
* Other props will be passed to wrapped SVG component
*
* @return {JSX.Element} Icon component
*/
function Icon(_ref) {
let {
icon,
size = 24,
...props
} = _ref;
return (0, _element.cloneElement)(icon, {
width: size,
height: size,
...props
});
}
var _default = Icon;
exports.default = _default;
//# sourceMappingURL=index.js.map