NoRedInk/noredink-ui/15.4.0

NOTE: the latest version is 35.9.3

Nri.Ui.PremiumCheckbox.V7

Changes from V6

  • Move the Premium pennant to the left of the checkbox
  • list based API instead of record based
{ label : String
, onChange : Bool -> msg
}
-> List (Attribute msg)
-> Html msg
selected : Bool -> Attribute msg

Content

{ teacherPremiumLevel : PremiumLevel
, contentPremiumLevel : PremiumLevel
}
-> Attribute msg

Lock Premium content if the user does not have Premium.

showPennant : msg -> Attribute msg

Show Premium pennant on Premium content.

When a locked premium checkbox is clicked, the msg that's passed in will fire.

Attributes

type Attribute msg

Customizations for the RadioButton.

This disables the input

This enables the input, this is the default behavior