Kinemium Docs

Toggle

A toggle switch UI component that allows users to switch between two states.

Properties

PropertyTypeDefault
Namestring"UIToggle"
AbsoluteSizeanynil
AbsolutePositionanynil
SizeUDim2UDim2.new(0, 56, 0, 28)
Valuebooleanfalse
OffColor3Color3Color3.new(0.3, 0.3, 0.3)
OnColor3Color3Color3.new(0.02, 0.5, 1)
HandleColor3Color3Color3.new(1, 1, 1)
OnValueChangedanynil
Visiblebooleantrue

Functions


onChanged

Arguments

value

Returns

This function returns nothing.

API

instance:onChanged(value)

On this page