On this pageclickDescriptionadds a click handler to a buttonTypefunctionExample<script> function myFunction() { showNotice({ text: "Button clicked", }); }</script><div> <Button onclick={myFunction}>Click Me</Button></div>DetailsRelated article: Handling a button clickRelated sample: Button