themeSwitcher

@Composable
fun IComponent.themeSwitcher(title: String? = "Switch color theme", style: ButtonStyle = ButtonStyle.BtnSecondary, 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, id: String? = null, content: @Composable IButton.() -> Unit = {})

The theme switcher component for Bootstrap.

Parameters

title

the title of the theme switcher

style

the style 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

the round state of the theme switcher

disabled

the disabled state of the theme switcher

className

the CSS class name

id

the ID of the theme switcher

content

the content of the theme switcher