Skip to content

Interface: SwitchProps

Defined in: src/betterdiscord/ui/settings/components/switch.tsx:7

Properties

disabled?

ts
optional disabled: boolean;

Defined in: src/betterdiscord/ui/settings/components/switch.tsx:10


id?

ts
optional id: string;

Defined in: src/betterdiscord/ui/settings/components/switch.tsx:8


internalState?

ts
optional internalState: boolean;

Defined in: src/betterdiscord/ui/settings/components/switch.tsx:12


value

ts
value: boolean;

Defined in: src/betterdiscord/ui/settings/components/switch.tsx:9

Methods

onChange()?

ts
optional onChange(newValue?: boolean): void;

Defined in: src/betterdiscord/ui/settings/components/switch.tsx:11

Parameters

ParameterType
newValue?boolean

Returns

void