@@ -19,16 +19,17 @@ page =
1919
2020alert :: Nut
2121alert = L.componentDoc "macosAlert" "Yoga.React.Native.MacOS.Alert (macosAlert)"
22− """-- Imperative function with 4 positional args
23−macosAlert T.critical "Delete file?" "This cannot be undone." ["Delete", "Cancel"]
24− # liftEffect"""
25− [ D.p [ DA.klass_ "text-sm text-gray-400 mt-2" ]
26− [ D.text_ "Signature: AlertStyle -> String -> String -> Array String -> Effect Unit" ]
27− , propsTable
28− [ { name: "arg 1", type_: "AlertStyle", description: "informational | warning | critical" }
29− , { name: "arg 2", type_: "String", description: "Alert title" }
30− , { name: "arg 3", type_: "String", description: "Alert message body" }
31− , { name: "arg 4", type_: "Array String", description: "Button labels (first is default)" }
22+ """macosAlert
23+ { style: T.critical
24+ , title: "Delete file?"
25+ , message: "This cannot be undone."
26+ , buttons: ["Delete", "Cancel"]
27+ }"""
28+ [ propsTable
29+ [ { name: "style", type_: "AlertStyle", description: "informational | warning | critical" }
30+ , { name: "title", type_: "String", description: "Alert title" }
31+ , { name: "message", type_: "String", description: "Alert message body" }
32+ , { name: "buttons", type_: "Array String", description: "Button labels (default: [\"OK\"])" }
3233 ]
3334 ]
3435