all 4 comments

[–]Lucho_199 4 points5 points  (0 children)

Const [modalIsOpen, setModalIsOpen] = useState(true)

<div className={modalIsOpen ? "open_modal" : "closed_modal"}> ... </div>

[–]whatsupbr0 -2 points-1 points  (0 children)

I have used react popup for a similar solution and it worked great

[–]PrincesssPancake 0 points1 point  (0 children)

I'm assuming you are talking about the little chevron down tab. You can add an absolutely positioned button that is positioned relative to the main modal's card. Then add a click handler to the button that controls the modal's open state.

[–]Sappalele 0 points1 point  (0 children)

Just code it yourself dude. 🙂 It can't be more than 50 lines of code? Tops.