Open this example in the interactive library
Source code
<>
{alertVisible && (
<Alert onClose={() => setAlertVisibility(false)}>Alert!!</Alert>
)}
<Button
type='primary'
text='button!!!'
onClick={() => {
// navigator.clipboard.writeText("test-031")}}
setAlertVisibility(true)
}}
/>
<BlockScope />
</>
