Customized fork of Rainbow's Rainbow-Button
import NounishButton from "../components/nounishButton/NounishButton"
const firstAction = () => {
//onclick action you'd want to intiate as the button animates
}
return (
<>
<NounishButton buttonId={"one"} buttonAction={firstAction} />
</>
)
- To add your own selection of glasses, insert string array of
img
hosted links insideGlasses
const Glasses = {
lostNouns: [...],
lilNouns: [...],
nouns: [...],
// add new array of glasses here
nounishGlasses: [
'<img src="https://i.ibb.co/QbgtdVH/glasses1.png" width="78px" height="45px">',
'<img src="https://i.ibb.co/9cq05Kb/glasses2.png" width="36px" height="21px">',
]
}
- Make sure that
this.variants
points to your newly created ⌐◨–◨ glasses array
constructor() {
...
// ["⌐◨–◨"]
// before this.variants = Glasses.lilNouns
// after
this.variants = Glasses.nounishGlasses
...
}