twitter-heart
v1.0.2
Published
Twitter heart animation (Like Component) ❤️
Downloads
19
Maintainers
Readme
twitter-heart ❤️
NPM Package to twitter heart (Like component)
Here is a quick preview
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
<TwitterHeart isLiked onHeartClick={this.heartClicked}>
API
Props
Name | Type | Description | Default :--- | :--- | :--- | :--- isLiked | boolean | Hold the current heart status | false onHeartClick | function | event when heart is clicked | null