Copy to clipboard
Usage and props
Prop | Type | Description |
---|---|---|
*ref | any | Should be passed to the element you want to copy |
*onCopy | function | a function for handling copy to clipboard |
*copied | boolean | is true when you trigger onCopy function and false when the copied value is reset |
*duration | number | timeout value (in milliseconds) to reset the copied value. default to 3s |
example
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