I am trying to use drawers in a JavaScript page but from the documentation I cannot understand how the HTML components are interacting together with the Js.
Ideally I would like to add modal drawers to my HTML page by only including the DOM and the JS without using any external web framework.
I am looking at this documentation: https://material.io/develop/web/components/drawers/
If somebody knows how the could be hide / show from a button.
thanks