Skip to content

Commit 031f582

Browse files
authored
Add documentary icon ( #94 )
2 parents b6f4cef + 4155692 commit 031f582

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.24.0 (2023-07-20)
2+
3+
### ✨ Features
4+
5+
* Add documentary icon
6+
7+
Credits
8+
9+
* [@Bunlong](https://github.com/Bunlong)
10+
111
## 0.23.0 (2023-07-05)
212

313
### ✨ Features

README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Social media share buttons for your next React apps.
4141
* PinterestShareCount
4242
* TumblrShareCount
4343
* VKShareCount
44+
* Icons
4445

4546
## 🔧 Install
4647

@@ -892,11 +893,53 @@ import { VKShareCount } from 'next-share'
892893
| url | string | | The URL of the shared page. ||
893894
| children | node | | React component, HTML element or string. ||
894895

896+
## 💡 Usage of Icon
897+
898+
#### 👨‍💻 Code
899+
900+
```js
901+
import {
902+
EmailIcon,
903+
FacebookIcon,
904+
FacebookMessengerIcon,
905+
HatenaIcon,
906+
InstagramIcon,
907+
InstapaperIcon,
908+
LineIcon,
909+
LinkedinIcon,
910+
LivejournalIcon,
911+
MailruIcon,
912+
OKIcon,
913+
PinterestIcon,
914+
PocketIcon,
915+
RedditIcon,
916+
SpotifyIcon,
917+
TelegramIcon,
918+
TumblrIcon,
919+
TwitterIcon,
920+
ViberIcon,
921+
VKIcon,
922+
WeiboIcon,
923+
WhatsappIcon,
924+
WorkplaceIcon,
925+
} from 'next-share'
926+
```
927+
928+
#### 📖 Props
929+
930+
| Props | Type | Default | Description | Required |
931+
| :--- | :--- | :--- | :--- | :--- |
932+
| size | number | | Icon size in pixels. ||
933+
| round | boolean | | Whether to show round or rect icons. ||
934+
| borderRadius | number | | Allow rounded corners if using rect icons. ||
935+
| bgStyle | object | | Customize background. ||
936+
| iconFillColor | string | <code>white</code> | Customize icon fill color. ||
937+
895938
## 📜 Changelog
896939

897-
Latest version 0.23.0 (2023-07-05):
940+
Latest version 0.24.0 (2023-07-20):
898941

899-
* Add SpotifyIcon
942+
* Add documentary icon
900943

901944
Details changes for each release are documented in the [CHANGELOG.md](https://github.com/Bunlong/next-share/blob/master/CHANGELOG.md).
902945

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-share",
3-
"version": "0.23.0",
3+
"version": "0.24.0",
44
"description": "Social media share buttons for your next React apps.",
55
"author": "Bunlong <bunlong.van@gmail.com>",
66
"license": "MIT",

0 commit comments

Comments
 (0)