How to close Navigation off Canvas with a button?

I want to be able to use the close button that I’ve created to close the Navigation off Canvas instead of X.
Is this possible?
I looked at toggling info in Docs, but it was a bit beyond me.

Hello @FoundationDesign,

Thanks for writing in!

You can use the Toggleable feature.

You will have to add a custom attribute to your Button element to be able to make it work.

Best Regards.

Amazing @ruenel… works perfectly. Thank you.

You are most welcome @FoundationDesign

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.