2.1.3 • Published 5 years ago

react-konfettikanone v2.1.3

Weekly downloads
64
License
MIT
Repository
github
Last release
5 years ago

react-konfettikanone is a light-weight and hardware accelerated React package that lets you celebrate with confetti 🎉🎊

✨ What it looks like

react-konfettikanone

🚀 Setup

yarn add react-konfettikanone

👩🏼‍💻 How to use <Konfettikanone />

className

Extend custom styles

colors

Array of Strings ["#F6F0FD", "#E3D0FF", "#9C6ADE", "#50248F", "#230051"]

particles

Number

duration

Number

launch

Boolean

onLaunchEnd

Function

👷🏼‍♀️ Example

import { Konfettikanone } from "react-konfettikanone";
function CelebrationCard() {
  return (
    <Konfettikanone launch={this.state.launch}>
      <div>
        <h2>🎊 Hooray, hooray! 🎊</h2>
        <p>Let's celebrate and throw some confetti!</p>
      </div>
      <button type="button" onClick={() => this.setLaunched(true)}>
        Confetti!
      </button>
    </Konfettikanone>
  );
}

🎫 License

Licensed under the MIT License, Copyright © 2018 Neele Barthel. See LICENSE for more information.

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago