Defines the visual and behavioral states that interactive objects can have. These states are used by StateMaterialSet to determine which material to display and by interaction handlers to manage behavior transitions.
State Definitions:
normal
: Default resting state when no interaction is occurringover
: Pointer is hovering over the object (mouse over, touch proximity)down
: Pointer is currently pressed down on the objectdisable
: Object is disabled and non-interactiveUsage in Material Management: These states are combined with selection flags (for checkboxes/radio buttons) to determine the final visual representation through StateMaterialSet.
// State transitions in ButtonInteractionHandler
handler.state = 'normal'; // Initial state
handler.state = 'over'; // On pointer enter
handler.state = 'down'; // On pointer press
handler.state = 'disable'; // When disabled
Union type representing the possible interaction states of interactive objects.