Intro

This is just a custom alert

This is a custom alert you can call from anywhere. I made it with the help of DeepSeek AI after searching in futility for an easy to use toast alert. Everything as at the time of making this was just unnecessarily complex.

Simply install the package and you will see a new action in your global actions section. You can call this action in any workflow on any page.
I am not a developer. AI wrote the code. I simply made the prompts ad ironed out the issues. I don't understand half of what is written in the code, but I did test it and it works. Most people would be fine with this.

Actions

  • customAlert

    This is the entire package. It's a custom alert that is triggered as an action.

    Arguments

    messageYour alert message
    typeAlert type. Can be info, success or error
    durationThis is the timeout duration (in milliseconds) of the alert.
    iconthis accepts an SVG (24x24px). Use this if you want to display a custom alert icon other than the default ones.
    closeButtonThis should be true or false. Indicate if you want a close button to be show.

    Test it here

Open in editor
Built in Nordcraft The website builder for creative studios