I have a modal in a layer above everything else. I need to add a click to a button that shows the modal. How do I do this? Everything I've seen online involves adding multiple artboards. I just need to show and hide a layer on click.
One possible method would be to use a component toggle state.
Make a button, and add an image or a group containing the content you want to show or hide. Select both. Make it a component.
Add a component toggle state, by clicking the + button next to the default state.
In the defaule state, set the image/group opacity to 0%
In the toggle state, set the image/group opacity to 100%
That's it really. Just preview it to try it out.