← Skyee · Skyee components · Get started

Accordion

Pure CSS expand/collapse using details.

Live preview

Is it free?
Yes — MIT licensed.
Does it need JavaScript?
Only for overlays, tabs and toasts.
Can I theme it?
Set data-sky-theme on any element.

HTML

<div class="sky-accordion"><details open><summary>Is it free?</summary><div>Yes — MIT licensed.</div></details><details><summary>Does it need JavaScript?</summary><div>Only for overlays, tabs and toasts.</div></details><details><summary>Can I theme it?</summary><div>Set <code>data-sky-theme</code> on any element.</div></details></div>

Open in the Skyee app · Edit in the playground