NoRedInk/noredink-ui/6.29.0

NOTE: the latest version is 35.9.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 6.29.0 found (15 same-name repos checked); no cached copy. Use another version.

Details

Nri.Ui.PremiumCheckbox.V5

{ label : String
, id : String
, selected : IsSelected
, disabled : Bool
, isLocked : Bool
, pennant : Pennant
, onChange : Bool -> msg
, onLockedClick : msg
}
-> Html msg

A checkbox that should be used for premium content

  • onChange: A message for when the user toggles the checkbox
  • onLockedClick: A message for when the user clicks a checkbox they don't have PremiumLevel for. If you get this message, you should show an Nri.Ui.Premium.Model.view
type Pennant
= Premium
| PremiumWithWriting

Premium is the yellow "P" pennant PremiumWithWriting is the yellow "P+" pennant

Changes from V4

  • inlines the Config
  • renames render function from premium to view
  • removes dependency on Assets