Closed johnhult closed 6 years ago
Hi! This works like a charm. Was only wondering if it would be possible to add an event when copying. Would like to add a notification when code is copied.
This is a great idea! Should definitely look into doing that
you can now pass a function to an onCopy prop on the CodeBlock component and it will run that function when the copy is clicked
onCopy
Hi! This works like a charm. Was only wondering if it would be possible to add an event when copying. Would like to add a notification when code is copied.