Skip to main content

DyteSettingsToggle

A button which toggles visibility of chat.

When clicked it emits a dyteStateUpdate event with the data:

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

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"