"Copy to clipboard" button

this is the best solution from all ABOVE - JUST WRITE
ANY VARIABLE
X = “I AM GREAT”
navigator.clipboard.writeText(X) # THIS SUPPORT VARIABLE ALSO

THANKS MAN I APPRECIATE IT