OptionalanimationOptional animation configuration for state transitions
OptionalbackgroundOptional outline/border for the toggle background
Border radius as a percentage (0-100)
Height of the toggle in pixels
OptionallabelOptional text labels for ON/OFF states
Background color when toggle is OFF. Accepts any Color format.
Circle/handle color when toggle is OFF. Accepts any Color format.
OptionaloffBackground color when toggle is ON. Accepts any Color format.
Circle/handle color when toggle is ON. Accepts any Color format.
OptionalonOptionalstartingInitial toggle state (true = ON, false = OFF). Set without triggering animation.
Width of the toggle in pixels
Configuration options for creating a Toggle component.