I am using the and trying to close the open accordion when another accordion is selected. But unable to do so. Any help is highly appreciated.
<lion-accordion>
<h3 slot="invoker">
<button>Sensory Factors</button>
</h3>
<div slot="content" class="lion-paragraph-container">
<p>
Content A
</p>
</div>
<h3 slot="invoker">
<button>Nutritional value</button>
</h3>
<div slot="content">
Content B
</div>
</lion-accordion>
Why create dependencies on Lit and Lion?
It is almost a one-liner
<details-accordion>
native Web Componentwrapping native HTML
<details> <summary>
codeThrowing in
ctrl-click
for freeDo read: