How to use the switch component with collapsibles
Last updated: June 26, 2024
You make combine the power of Replo's Switch and Collapsible components to create a page where toggling a switch on expands a collapsible to show more content.
Navigate to the switch component on your page
Add a toggle collapsible interaction to it
Add a custom state to your switch, and set "show if" to the "collapsible is open"
Set the "left offset" on this new state to 26px in the positioning panel
You're done!