ThemeSwitcher

constructor(title: String? = "Switch color theme", autoIcon: String = "fas fa-circle-half-stroke", lightIcon: String = "fas fa-moon", darkIcon: String = "fas fa-sun", round: Boolean = false, disabled: Boolean = false, className: String? = null, init: ThemeSwitcher.() -> Unit? = null)(source)

Parameters

title

the title of the theme switcher

autoIcon

the icon of the theme switcher when the theme is auto

lightIcon

the icon of the theme switcher when the theme is light

darkIcon

the icon of the theme switcher when the theme is dark

round

use round switcher style

disabled

determines if the button is disabled on start

className

CSS class names

init

an initializer extension function