Creating Function to Allow Users to Copy a Template from Front End

I’ve built several templates and components within Bricks.

And I’d like to be able to copy the template from the front end via a button click or something like that rather than going into the template interface. Additionally, I may make these publicly available at some point.

Is there an easy-to-implement function to copy a template from the front end? Also, if I could have a button to export the json file from the front end that would be great, too.

I’m also after this function, I think a button to copy a component would be much more practical than making the models.
A copy button would be much more practical, if anyone knows how it can be done I would also be very grateful.
It would be something like this site with the copy button. Button Styles - Nintu - a SaaS marketing agency

@thiago - here’s a great tutorial: Copy To Clipboard Button for Sharing Your Bricks Designs - BricksLabs

Perfect, thanks a lot for the reply.
Success.