Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshmakadia/twitter-heart
NPM Package to twitter heart (Like component)
https://github.com/harshmakadia/twitter-heart
Last synced: 1 day ago
JSON representation
NPM Package to twitter heart (Like component)
- Host: GitHub
- URL: https://github.com/harshmakadia/twitter-heart
- Owner: Harshmakadia
- Created: 2019-08-29T14:46:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T09:29:18.000Z (about 2 years ago)
- Last Synced: 2024-12-29T07:14:03.973Z (17 days ago)
- Language: JavaScript
- Size: 277 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# twitter-heart ❤️
NPM Package to twitter heart (Like component)
Link - https://www.npmjs.com/package/twitter-heart
## Here is a quick preview![Aug-29-2019 22-13-25](https://user-images.githubusercontent.com/13532530/63959653-43aa5c00-caaa-11e9-8f33-1c704bd35f3b.gif)
## Demo link
https://codesandbox.io/s/aged-cloud-cwr0e?fontsize=14## How to use it?
> This will help you make a single heart component which is like the twitter like
## Installation
```
npm install twitter-heart
```## Usage
```
import TwitterHeart from 'twitter-heart';
```### Demo example
``````
## API
### Props
Name | Type | Description | Default
:--- | :--- | :--- | :---
isLiked | boolean | Hold the current heart status | false
onHeartClick | function | event when heart is clicked | null