You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The /basics folder contains examples highlighting the configurable properties that can be passed into emojisplosion() and emojisplosions().
The /fun-stuff folder contains the not-so-basic examples.
Follow fun-stuff/example-template or the code snippet below to create a new example explosion. The example variables have the following types (these are also listed in ./src/types/example-types):
name: string
blurb: string
explosionFunct: () => void
codeSnippet: string
disableButtonTime?: number (optional)
Go to emojisplosion-demo/src/components/side-bar/side-bar.
Import * from your new example file at the top of side-bar following convention.
Add your imported example to the appropriate array in SideBar.
import{emojisplosion}from"emojisplosion";exportconstname="Example name";exportconstblurb="Example description";exportconstcodeSnippet=`Copy paste the code from your handleClick below`;exportconstexplosionFunct=()=>{emojisplosion({// Create your own explosion!!})};exportconstdisableButtonTime=0// time in milliseconds (defaults to 0);