Component States (Hover & Toggle)
Master Interactive Component States in Adobe XD
Interactive Component States Overview
Hover States
Create visual feedback when users move their cursor over components. Essential for modern web interfaces and user experience design.
Toggle States
Build components that switch between different appearances or show/hide content. Perfect for interactive elements and information panels.
Before starting, remember that components and groups behave similarly in Adobe XD. You double-click to enter them and hit Esc to exit. Nested components require multiple clicks and escapes - one for each level.
Creating Your First Hover State
Select Component
Click on the Kauai element and notice it's a group with Stack enabled and 11px spacing between text and icon.
Add Hover State
In Property Inspector, click the + button next to Component, then add a Hover State to the Default State.
Modify Appearance
Double-click the circle icon and change Adjacent Spacing from 11 to 5, then set Opacity to 100%.
Test Interaction
Return to Default State, open Desktop Preview, and hover over Kauai to see the icon move closer and brighten.
When finished editing component states, always switch back to the Default State. Otherwise, your design will remain on the modified state, which can cause confusion during design handoff.
Building Interactive Toggle Components
Prepare Components
Select both the Kauai button and info card, then create a new component. Hide the info card in the default state using the Layers panel.
Add Toggle State
Click the + button next to Default State and choose Toggle State. This creates an alternative appearance for the component.
Configure Visibility
In the Toggle State, show the info card by clicking its visibility icon in the Layers panel.
Test Functionality
Preview the design and click Kauai to toggle the info card open and closed.
Toggle State vs Custom State
| Feature | Toggle State | Custom State |
|---|---|---|
| Interaction Type | Click anywhere to close | Click specific close button |
| Setup Complexity | Simple, automatic | Requires prototype actions |
| User Control | Less precise | More precise |
| Best For | Quick prototypes | Production-ready designs |
Objects within states can have their own prototype interactions, including scroll-to links and scrollable areas. This enables complex interactive functionality within component states.
Key Takeaways

from 11 to 5. This draws the icon closer to the text, creating a sense of connection during hover.
or hit Cmd–Return (Mac) or CTRL–Enter (Windows) to test your interactive prototype.