NoRedInk/noredink-ui/7.5.0

NOTE: the latest version is 35.9.3

Nri.Ui.PremiumCheckbox.V6

{ label : String
, id : String
, selected : IsSelected
, disabled : Bool
, isLocked : Bool
, isPremium : Bool
, 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

This module is used when there may or may not be Premium content to be "checked"!

Changes from V5

  • Allow checkbox to show pennant, or not, based on bool
  • Remove PremiumWithWriting, it's only Premium now

Modules