| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Switch
Synopsis
- data SwitchProps action = SwitchProps {
- switchId :: Maybe MisoString
- switchName :: MisoString
- switchChecked :: Bool
- switchDisabled :: Bool
- switchClasses :: [MisoString]
- switchLabelClasses :: [MisoString]
- switchAttrs :: [Attribute action]
- defaultSwitchProps :: SwitchProps action
- switch_ :: SwitchProps action -> [View model action] -> View model action
- switchInput_ :: SwitchProps action -> View model action
- switchSample :: View model action
- switchCodeSample :: View model action
- switchPropsApi :: View model action
Props
data SwitchProps action Source #
Props for switch_
Constructors
| SwitchProps | |
Fields
| |
defaultSwitchProps :: SwitchProps action Source #
Smart constructor: unchecked, enabled
Views
switch_ :: SwitchProps action -> [View model action] -> View model action Source #
Switch: label-wrapped switch input. The children render as the label text.
switchInput_ :: SwitchProps action -> View model action Source #
The bare switch input, for custom layouts
Samples
switchSample :: View model action Source #
switchCodeSample :: View model action Source #
switchPropsApi :: View model action Source #