Closed wliederer closed 3 years ago
Looks good and works internally. However, right now, there's no way for the parent to see the state of the checkbox. I'm thinking it may need a handleChange or onChange prop to receive a function from the parent, maybe lifting state as well if needed.
I added a required onChange function pass that works with internal checkbox state to work with parent state. I looked at the prop-picker when thinking of an implementation for it. Open to other ideas wasnt really sure how to approach this one. I put invisioned implementation in playground.
Let me know what yall think
Made checkbox for pickup ui
created two tests: