Skip to main content

RtkSettingsToggle

A button which toggles visibility of chat.

When clicked it emits a rtkStateUpdate event with the data:

{
activeSettings: boolean;
}
<View>
<RtkSettingsToggle size="sm" />
<RtkSettingsToggle size="lg" />
<RtkSettingsToggle variant="horizontal" size="sm" />
</View>

Props

iconPack

Icon pack

Default
defaultIconPack

size

Size

Type
"lg" | "md" | "sm" | "xl"

states

States object

Type
States

t

Language

Default
useLanguage()

variant

Variant

Default
'button'
Type
"button" | "horizontal"