Norse Power Metal

    react-animated-heart

    0.0.7 • Public • Published

    react-animated-heart

    "Monthly Download" "Latest Release" MIT license

    A simple Twitter-like animated button. desperately needed it for one of my projects.

    script preview

    Installation

    npm install react-animated-heart

    yarn add react-animated-heart

    Usage

    import React, { useState } from "react";
    import Heart from "react-animated-heart";
    
    export default function App() {
      const [isClick, setClick] = useState(false);
      return (
        <div className="App">
          <Heart isClick={isClick} onClick={() => setClick(!isClick)} />
        </div>
      );
    }

    License

    MIT

    Install

    npm i react-animated-heart

    DownloadsWeekly Downloads

    174

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    47.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • shaunlwm