Hide component after a second

I’m using a callback to show a notification when something happens, but I also want to hide it after a few seconds.

How could I accomplish that?

Hi @ddavo

If you are using a front end framework like Bootstrap or Mantine you can make use of the Toast component from Bootstrap or the Notification from Mantine.
They can dismiss or hide themself without requiring to code it via a callback.

1 Like

It’s a “copy link” button, so I was using bootstrap’s popover, using a ClientSide callback to copy the url to the clipboard and show the “link copied” popover, but I don’t know how to hide the popover after a few seconds.

I’d prefer to use something like popover/tooltip, as it’s a “notification” related to that “Copy link” button