intrepidshape/elm-web3-ui/1.0.0

NOTE: the latest version is 4.0.0

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/IntrepidShape/elm-web3-ui.

What we checked: The repo moved to github.com/IntrepidShape/elm-web3-ui and tag 1.0.0 is there; its commit 4a2f1b2ed9a9 is from 2026-05-09 11:59 UTC, before the version was published (2026-05-09 12:02 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/intrepidshape/elm-web3-ui/zipball/1.0.0/

Web3.Ui.Sign

Signing lifecycle UI components.

Pattern-match on Sign.SignState to render sign request status without missing any state.

-- Display current sign state:
Web3.Ui.Sign.stateView [] model.signState


-- Sign button disabled while pending:
Web3.Ui.Sign.signButton []
    { label = "Sign Permit", onSign = RequestSign }
    model.signState


-- Display the signature once signed:
Web3.Ui.Sign.signatureView [] model.signState
stateView : List (Attribute msg) -> SignState -> Html msg

Displays the sign lifecycle state as a labelled span.

Labels: "Idle" / "Waiting for signature…" / "Signed" / "Failed: <err>" / "Rejected"

CSS class: web3-sign-state

List (Attribute msg)
-> { label : String
, onSign : msg
}
-> SignState
-> Html msg

A sign button that is active in SignIdle and terminal states, and disabled while SignPending.

CSS class: web3-sign-btn

signatureView : List (Attribute msg) -> SignState -> Html msg

Displays the signature value when in the Signed state.

Returns an empty text node for all other states — safe to always render.

CSS classes: web3-signature (wrapper div), web3-signature-value (code element)