react-social-icons
Advanced tools
Comparing version 6.15.0 to 6.16.0
@@ -32,2 +32,3 @@ export { default as bandsintown } from './bandsintown.js'; | ||
export { default as meetup } from './meetup.js'; | ||
export { default as misskey } from './misskey.js'; | ||
export { default as opensea } from './opensea.js'; | ||
@@ -34,0 +35,0 @@ export { default as patreon } from './patreon.js'; |
@@ -32,2 +32,3 @@ import './icons/bandsintown.js'; | ||
import './icons/meetup.js'; | ||
import './icons/misskey.js'; | ||
import './icons/opensea.js'; | ||
@@ -34,0 +35,0 @@ import './icons/patreon.js'; |
{ | ||
"name": "react-social-icons", | ||
"version": "6.15.0", | ||
"version": "6.16.0", | ||
"description": "beautiful, easy svg social icons in react", | ||
@@ -46,2 +46,3 @@ "main": "./dist/react-social-icons.cjs", | ||
"./meetup": "./dist/icons/meetup.js", | ||
"./misskey": "./dist/icons/misskey.js", | ||
"./opensea": "./dist/icons/opensea.js", | ||
@@ -48,0 +49,0 @@ "./patreon": "./dist/icons/patreon.js", |
@@ -327,12 +327,17 @@ # react-social-icons | ||
### How do I render the mastodon icon? | ||
### How do I render icons for federated or decentralized social networks? | ||
Mastodon is a federated social network, each instance may have a different | ||
domain name associated with it. Specify the network attribute as "mastodon" to | ||
render the Mastodon icon. | ||
Specify the network prop of the social network icon you want to render. For example: | ||
```js | ||
<SocialIcon network="mastodon" url="https://techhub.social/" /> | ||
// or | ||
<SocialIcon network="misskey" url="https://misskey-hub.net" /> | ||
``` | ||
Federated/decentralized social networks can have instances or user accounts | ||
hosted on different domains. This can cause the library to not detect the | ||
proper network on a naive inspection of the `url` prop. Refer to [the | ||
documentation on props](#props). | ||
### Tree-shaking with Typescript causes a build error where the type declarations cannot be found | ||
@@ -339,0 +344,0 @@ |
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
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
141617
77
1080
369