I'm working with Metronic 8.0.35 in my React app
I want to add an accordion element according to this example (just copied it):
https://preview.keenthemes.com/metronic8/react/demo1-docs/docs/accordion
But it doesn't work. Seems like it static and without Javascript
Hi,
Try to use https://react-bootstrap.github.io/components/accordion/ instead. All our styles will be fitted also.
Regards,
Keenthemes support
Seems Metronic is just a Bootstrap's wrapper and has nothing with React. Their demo for React uses the additional library for accordion..
I have the same problem, when I copy+paste code mentioned before nothing happend. What am I doing wrong?
Hi,
Code in code preview is everything that you need to use an accordion.
It will work without javascript, you just need to include bs attributes and classes to your element as it is shown in our doc:
https://preview.keenthemes.com/metronic8/react/demo1-docs/docs/accordion
Hi, same for me. I copied the content of this:
https://getbootstrap.com/docs/5.0/components/accordion/
to end of e.g. dashboard page, and it does nothing.
My code is running Angular Demo1.
Can you please advise?