Adding the ability to hoist InteractionState in all our components enables a few powerful usecases, including:
Customizing parameters in a particular visual state, such as when a component is Pressed
Allowing testing the behavior / appearance of a component in a particular state, such as screenshot testing how a component looks like when Pressed
Allowing a component's visual state to be controlled by another component, for example a list item that when pressed makes a RadioButton looked pressed as well
Description
Adding the ability to hoist InteractionState in all our components enables a few powerful usecases, including:
RadioButton
looked pressed as well