@primer/octicons-react
Advanced tools
Comparing version 19.8.0 to 19.9.0
{ | ||
"name": "@primer/octicons-react", | ||
"version": "19.8.0", | ||
"version": "19.9.0", | ||
"description": "A scalable set of icons handcrafted with <3 by GitHub.", | ||
@@ -8,7 +8,11 @@ "homepage": "https://primer.style/octicons", | ||
"license": "MIT", | ||
"type": "commonjs", | ||
"main": "dist/index.umd.js", | ||
"module": "dist/index.esm.js", | ||
"module": "dist/index.esm.mjs", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.esm.js", | ||
"types": { | ||
"import": "./dist/index.d.mts", | ||
"require": "./dist/index.d.ts" | ||
}, | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.umd.js" | ||
@@ -29,3 +33,2 @@ }, | ||
"files": [ | ||
"build", | ||
"dist" | ||
@@ -32,0 +35,0 @@ ], |
@@ -161,16 +161,2 @@ # @primer/octicons-react | ||
```diff | ||
- <Octicon icon={AlertIcon} /> | ||
+ <AlertIcon /> | ||
``` | ||
The `Octicon` component is wrapper that passes props to its icon component. To render a specific icon, you | ||
can pass it either via the `icon` prop, or as the only child: | ||
```jsx | ||
<Octicon icon={Icon} /> | ||
<Octicon><Icon x={10}/></Octicon> | ||
``` | ||
[octicons]: https://primer.style/octicons/ | ||
@@ -177,0 +163,0 @@ [primer]: https://github.com/primer/primer |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
913649
8
12829
171
1