Socket
Socket
Sign inDemoInstall

@primer/octicons-react

Package Overview
Dependencies
Maintainers
11
Versions
602
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primer/octicons-react - npm Package Compare versions

Comparing version 19.8.0 to 19.9.0

dist/index.d.mts

13

package.json
{
"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

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