Alerts

Use alerts for...

When using on form pages

Place alerts at the end of the body element.

import { AlertKind } from "@hedia/windfall/css/alerts";
import { alert } from "@hedia/windfall/html/alerts";

alert({ kind: AlertKind.Error }, "Something went wrong"),

When using on navigation pages

Place alerts at the end of the body element.

import { AlertKind } from "@hedia/windfall/css/alerts";
import { alert } from "@hedia/windfall/html/alerts";

alert({ kind: AlertKind.Success }, "Email address changed"),

When using on content pages

Place alerts at the end of the body element.

import { AlertKind } from "@hedia/windfall/css/alerts";
import { alert } from "@hedia/windfall/html/alerts";

alert({ kind: AlertKind.Success }, "Thanks for subscribing to our newsletter"),