I have created a toggle component and set two states ('active' and 'inactive'). When I click on the toggle it now animates on and off. Next, I created a text component and set two states ('active' and 'inactive') that transitions the text being displayed based on the selected state.
I'm trying to link the states between the toggle and text so that when I click on the toggle, the text also switches between the active and inactive. Is this scenario supported?