Copy to clipboard

Usage and props

*refanyShould be passed to the element you want to copy
*onCopyfunctiona function for handling copy to clipboard
*copiedbooleanis true when you trigger onCopy function and false when the copied value is reset
*durationnumbertimeout value (in milliseconds) to reset the copied value. default to 3s


Monday Monday Monday, open wide Dev Fans! get ready to stuff your face with Javascript, css, node modules, barbecue tips, git workflow, break-dancing, soft-skills, web development, the hastiest, the craziest, the tastiest web development treats coming in hot. here is Wes "Baracuda" Bos and Scott "El Toro Loco" Tolinski