Tailwind CSS Accordion
Create collapsible content sections with Tailwind CSS accordion examples, including nested, bordered, and always-open variants.
Requires JS
This page requires our Accordion plugin. You can skip this step if you're already using Preline UI as a package.
Always open
Use data-hs-accordion-always-open to keep multiple accordion items open at the same time.
With arrow indicator
Add an arrow to make the expanded and collapsed states easier to scan.
Separated title and arrow
Stretch the trigger content so the title stays left and the arrow aligns to the right.
Bordered open content
Add borders around the expanded panel content to emphasize the open state.
Destroy and reinitialize
Use the destroy method to remove an accordion instance and initialize it again when needed.