intrepidshape/elm-web3-ui/3.0.0

NOTE: the latest version is 4.0.0

Web3.Ui.StatCell

Single label/value cell with optional delta and sentiment color. The unit-of-display analytics row that every dapp reaches for: "TVL", "24h volume", "stakers", "floor".

Web3.Ui.StatCell.view
    { label = "Floor price"
    , value = "0.024 PLS"
    , delta = Just "+1.4%"
    , sentiment = Web3.Ui.StatCell.Positive
    }

CSS classes: web3-statcell, web3-statcell__label, web3-statcell__value, web3-statcell__delta, web3-statcell--positive / --negative / --neutral.

{ label : String
, value : String
, delta : Maybe String
, sentiment : Sentiment
}
-> Html msg

Render the stat cell.

= Positive
| Negative
| Neutral