quietgarden/elm-web3-ui/2.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/quietgarden/elm-web3-ui is gone (deleted or private); Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 2.0.0 found (1 same-name repos checked); no cached copy. Use another version.

Details

Web3.Ui.PendingOverlay

Overlay shown while waiting for wallet signature.

Every dapp needs a "check your wallet" prompt when a transaction is AwaitingSignature. This module provides a consistent overlay so each project does not hand-roll the same spinner and copy.

-- Always rendered (you control visibility via CSS or parent logic):
Web3.Ui.PendingOverlay.view []
    { message = "Check your wallet" }


-- Only renders during AwaitingSignature, empty otherwise:
Web3.Ui.PendingOverlay.conditionalView []
    { message = "Check your wallet" }
    model.tx
view : List (Attribute msg) -> { message : String } -> Html msg

Render the overlay unconditionally.

CSS classes: web3-pending-overlay (root), web3-pending-overlay-inner, web3-pending-spinner, web3-pending-message

conditionalView : List (Attribute msg) -> { message : String } -> Status -> Html msg

Render the overlay only when status is Tx.AwaitingSignature.

Returns Html.text "" for all other states — safe to always include in your view tree.