Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-antd-icons

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-antd-icons - npm Package Compare versions

Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.5

.rpt2_cache/4e9ba99ef5222237dc093197ee45ff403eb21f79/code/cache/47e7ebe9bda329cd530b6c2d838867e6a7668925

2

esm/index.js

@@ -64,3 +64,3 @@ import { createElement } from 'react';

children.push.apply(children, iconChildren);
return createElement$$1('svg', __assign({}, extraProps, (_a = {}, _a['data-icon'] = icon.name, _a.viewBox = "0 0 " + icon.width + " " + icon.height, _a.width = '1em', _a.height = '1em', _a.fill = 'currentColor', _a)), children);
return createElement$$1('svg', __assign({}, extraProps, (_a = {}, _a['data-icon'] = icon.name, _a.viewBox = "0 0 " + icon.width + " " + icon.height, _a.width = '1em', _a.height = '1em', _a.fill = 'currentColor', _a['aria-hidden'] = 'true', _a)), children);
}

@@ -67,0 +67,0 @@ var convertThunk = convert.bind(null, createElement);

@@ -66,3 +66,3 @@ 'use strict';

children.push.apply(children, iconChildren);
return createElement('svg', __assign({}, extraProps, (_a = {}, _a['data-icon'] = icon.name, _a.viewBox = "0 0 " + icon.width + " " + icon.height, _a.width = '1em', _a.height = '1em', _a.fill = 'currentColor', _a)), children);
return createElement('svg', __assign({}, extraProps, (_a = {}, _a['data-icon'] = icon.name, _a.viewBox = "0 0 " + icon.width + " " + icon.height, _a.width = '1em', _a.height = '1em', _a.fill = 'currentColor', _a['aria-hidden'] = 'true', _a)), children);
}

@@ -69,0 +69,0 @@ var convertThunk = convert.bind(null, React.createElement);

{
"name": "react-antd-icons",
"version": "0.1.0-alpha.4",
"version": "0.1.0-alpha.5",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "module": "./esm/index.js",

@@ -24,3 +24,3 @@ # React Antd Icons

import styles from './index.less';
import { library, Alibaba, Dashboard, DashboardFill } from 'antd-icons/esm';
import { library, Alibaba, Dashboard, Twitter } from 'antd-icons/esm';
import AntdIcon from 'react-antd-icons/esm';

@@ -35,5 +35,4 @@

<AntdIcon type={'alibaba'} />
<AntdIcon type={'dashboard'} />
<AntdIcon type={'dashboard-fill'} />
<AntdIcon type={'it will cause error'} />
<AntdIcon type={Twitter} />
</div>

@@ -44,1 +43,11 @@ );

```
## Component Interface
```ts
interface IAntdIconProps {
type: string | IconDefinition;
className?: string;
onClick?: React.MouseEventHandler<SVGSVGElement>;
style?: React.CSSProperties;
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc