Join the Webstudio community

Updated 7 months ago

Accordion toggle for open/collapsed would be intuitive

At a glance

The community member who posted the original post suggests that instead of using 0/1 for an accordion, a toggle for open/collapsed would be more intuitive. In the comments, another community member explains that the default value of 0/1 references which accordion item should be open, and that if the user wants to set each item separately, they can use a collapsible component which has an "open" switch.

Hey yall, just a thought for the devs from someone without any real development background.
Instead of 0/1 for the accordion a toggle for open/collapsed would be intuitive.
Attachment
image.png
B
1 comment
The idea of accordion is to have only single item open at a time. So this default value references which one to open. If you want to setup each item separately you can use collapsible. There is "open" switch there.
Add a reply
Sign up and join the conversation on Discord