Need help making a copy button

Hi! I made this password generator. Now i need to make a copy button to copy passwords to the clipboard! how do i do that?? and also make the password length customizable. Any advice will be appreciated!

Thanks in advance! Really grateful for this community :heart:

here is the link–>
Password Generator (

I don’t know but I googled this and there are a lot of results with what seem viable options - have you tried some of them?