zent
Version:
一套前端设计语言和基于React的实现
14 lines (13 loc) • 594 B
JavaScript
import { __assign, __rest } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import cx from 'classnames';
import { forwardRef } from 'react';
var Icon = forwardRef(function (_a, ref) {
var className = _a.className, spin = _a.spin, type = _a.type, otherProps = __rest(_a, ["className", "spin", "type"]);
return (_jsx("i", __assign({ ref: ref, className: cx('zenticon', "zenticon-" + type, className, {
'zenticon-spin': spin,
}) }, otherProps, { "data-zv": '10.0.17' }), void 0));
});
Icon.displayName = 'ZentIcon';
export { Icon };
export default Icon;