This module contains Turbines DSL for constructing HTML.
This module is typically imported qualified as.
import Turbine.HTML as H
inputRange :: forall r. Subrow r (InputRangeAttrs' ()) => Record r -> Component (Record (InputRangeOut' ())) (Record ())
An input element with the
type attribute set to
range. Compared to a
normal a normal input element this variant accepts three additional
attributes all of which are numbers:
value output is a
Number and not a
toggleClass :: String -> Behavior Boolean -> ClassDescription
Takes a class name and a boolean valued behavior. When the behavior is
true the element has the class and when the behavior is
element does not have the class.
toggleClass "active" isActiveBehavior <> toggleClass "selected" isSelectedBehavior