| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.ThemeSwitcher
Synopsis
- data ThemeSwitcherProps action = ThemeSwitcherProps {
- themeSwitcherThemes :: [(MisoString, MisoString)]
- themeSwitcherSelected :: MisoString
- themeSwitcherClasses :: [MisoString]
- themeSwitcherAttrs :: [Attribute action]
- defaultThemeSwitcherProps :: ThemeSwitcherProps action
- themeSelect_ :: (MisoString -> action) -> ThemeSwitcherProps action -> View model action
- darkModeToggle_ :: action -> View model action
- themeSwitcherCodeSample :: View model action
- themeSwitcherPropsApi :: View model action
Props
data ThemeSwitcherProps action Source #
Props for themeSelect_
Constructors
| ThemeSwitcherProps | |
Fields
| |
defaultThemeSwitcherProps :: ThemeSwitcherProps action Source #
Smart constructor: basecoat's stock themes
Views
themeSelect_ :: (MisoString -> action) -> ThemeSwitcherProps action -> View model action Source #
Theme Switcher: select that emits the chosen theme name
darkModeToggle_ :: action -> View model action Source #
Sun/moon button that emits the given action on click
Samples
themeSwitcherCodeSample :: View model action Source #
themeSwitcherPropsApi :: View model action Source #