toggle
v1.0.1arrow_drop_downVerifies that the children is an array containing only two choices with a different value.
Update focus style for the speficied styleId.
Toggle component
Generates the style-id & inject the focus style.
Deactivate the focused attribute in order to make sure the focus animation only runs once when the component is focused on & not after re-rendering e.g when the user clicks on the toggle.
Remove a component’s associated styles whenever it gets removed from the DOM.
Activate the focused attribute used to determine when to show the one-time focus animation and trigger a render.
Deactivate the focused attribute used to determine when to show the one-time focus animation and trigger a render.
Flip value in case it is false.
Flip value in case it is true.
Flip value and trigger change.