NoRedInk/noredink-ui/7.17.0

NOTE: the latest version is 35.9.3

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

Modules