miso-ui
Safe HaskellNone
LanguageHaskell2010

Miso.UI.ThemeSwitcher

Synopsis

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