react-antd-icons
Advanced tools
Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.5
@@ -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; | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17819
51