Alert

Feedback

Takes a block

Inline notice; a danger or warning one is announced as an alert.

Alert(message, tone: …) { … }

Example

Alert("Your changes were saved.").success Alert("The server is not answering.").danger

Renders with the class wf-alert, stable across releases, so a stylesheet may target it.

Props of Alert
Prop Type Meaning
message String (positional)

The message

tone: .success .danger .warning .info

Kind of notice

Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.