Closed ghost closed 1 year ago
We want mint to send analytics events when the user copies from a code block.
We need an optional prop on the CodeBlock and CodeGroup component that runs whenever the clipboard is clicked. The event should have name and code as event properties.
name
code
We might be able to use Storybook interactions to test the event fires?
Going to take this one, I'll add Actions/Interactions in storybook.
@NicoZweifel we just had to do this for #51
No problem ☺️
We want mint to send analytics events when the user copies from a code block.
We need an optional prop on the CodeBlock and CodeGroup component that runs whenever the clipboard is clicked. The event should have
name
andcode
as event properties.