muicss / mui

Lightweight CSS framework
https://www.muicss.com
Other
4.51k stars 426 forks source link

Accordion/Collapsible #258

Open caub opened 6 years ago

caub commented 6 years ago

Is there a plan to implement this kind of Collapsible Component?

amorey commented 6 years ago

There are no plans to add a Collapsible Component to the core library but we would like to add a plugin system so users can share higher-level components with each other. In the mean time here's a pure-javascript implementation of the Collapsible Component using MUI: https://jsfiddle.net/muicss/v5ytxft0/

caub commented 6 years ago

Oh, very nice and short code, thanks, interesting

With React it should be easy to do, but I guess you want equal support on all frameworks

I did accordions some time ago like this, there's also <details><summary>... that could maybe be enhanced too by MUI?