+/- Collapsible/Accordion Component - made possible via switch component with CSS

I know this has been requested before but did not get any votes so I wanted to share again. Really useful for long forms or for hiding/displaying lots of information in screens. From a design perspective, this makes more sense than using a switch component or a button.

With the help of many different threads here, I have managed to change the appearance of the switch/toggle component with CSS to display (+) or (-).

From there I have the switch component mapped to a boolean column and the components ‘enclosed’ becomes visible when set to true.

Would love to see this supported natively to avoid having to use CSS.

Thanks Glide and everyone in this community!

Hello sir,

Not really sure but You can do this without CSS. Please check out lawyersnearme.glideapp.io.

You just need the +/- to create the accordion effect on a single row inline list. It’s native unless you require something more specific.

I have done one for you on tab 3

3 Likes

This is great! Thanks so much @Wiz.Wazeer. I got confused on how the title and emoji ended up in the same line but realized you were using the avatar text as the title. I was thinking the title is actually in the title which results in the emoji displaying on a separate line. Wish I’ve thought of this sooner

This works perfect for my use case. Kinda wish the text can be larger.

Thanks again!

2 Likes

“Kinda wish the text can be larger.”

Agree! Thank you!