Skip to content

How to use Toggle Component visibility?

If you want to create a toggle effect when a user clicks on a menu item, a list of options appears. Clicking the same menu item...

Updated 16 Sep 20261 min read

If you want to create a toggle effect when a user clicks on a menu item, a list of options appears. Clicking the same menu item again hides the list, allowing users to easily expand or collapse options. Follow the steps below to use the Toggle Component Visibility interaction.


  1. To use Toggle Component Visibility, select a component and click 'Manage Interactions.'


Screen Shot 2024-09-12 at 12.59.57 PM.png


  1. Choose the preferred interaction from the list and select 'Toggle Component Visibility.'


Screen Shot 2024-09-12 at 1.00.37 PM.png


  1. Specify the component affected by the action by either visually selecting it or choosing it from the displayed components list. Once selected, click 'Select.'


Screen Shot 2024-09-12 at 1.00.55 PM.png


  1. Now, add the effect to the selected action. Refer to this article for instructions on adding effects and editing transitions.


Screen Shot 2024-09-12 at 1.01.52 PM.png


  1. Now we are going enable the primary container by clicking on the grouped component and toggling on the 'Set as primary container.'


Note - On enabling this, only primary container and its children will be visible in view mode.


Toggle Component Visibility (1).gif


  1. Once everything is set up, switch to View Mode by clicking on 'View' to see the interaction in action.


Screenshot 2025-08-07 at 11.25.41 AM.png


  1. Clicking the component will reveal the dropdown list, and clicking it again will hide it, allowing easy expansion or collapse.


Toggle Component Visibility (2).gif



Refer to this video below to get a detailed view on Toggle Component Visibility action:








Was this page helpful?

Sign in to MockFlow

The same account you use in the app and on the API.

Forgot your password?
or
Continue with GoogleContinue with Microsoft