Requires Material Tailwind JS

Tailwind CSS Accordion

Build dynamic and responsive collapsible sections with our Tailwind CSS accordion component. Perfect for FAQs, navigation menus, and content organization. Our accordion component helps reduce visual clutter while maintaining easy access to information.

The accordion is a UI component that allows the user to show and hide sections of related content on a page. There are many ways to use this component, like displaying a list of FAQs, showing various menus and submenus, displaying the locations of a particular company, and so on.

We created a series of accordion examples to help you build easier your application or website. All these examples are styled with Tailwind CSS and based on Material Design. Check them below.


Accordion Demo

Create expandable and collapsible content sections using Tailwind CSS classes. This responsive accordion example is perfect for FAQs and nested content, featuring smooth transitions and intuitive interaction.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.


Accordion All Open

Display all accordion sections expanded by default using Tailwind CSS utilities. This pattern works great for content-heavy pages where users need to scan multiple sections quickly.

What is Material Tailwind React

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

What is Material Tailwind HTML

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

What is Material Tailwind Vue

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.


Controlled Accordion

Manage accordion states programmatically with Tailwind CSS classes. Perfect for complex interactions where you need precise control over which sections are expanded or collapsed.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.


Accordion Custom Icon

Personalize your accordion's expand/collapse indicators with custom icons. Use Tailwind CSS's group and data attributes to create smooth icon transitions that enhance user experience.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.


Accordion Custom Styles

Transform your accordion's appearance with Tailwind CSS utility classes. Create unique designs by customizing colors (bg-slate-800, bg-blue-500), borders, and transitions while maintaining accessibility.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.


Accordion Disabled

Create visually distinct disabled sections using Tailwind CSS opacity and cursor utilities. This example shows how to clearly indicate non-interactive accordion items while maintaining visual hierarchy.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind HTML

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.

Material Tailwind is an open-source crafted in Tailwind CSS. Get Material Tailwind and take advantage of its free components and features that will help you set up your web project quickly.


Required Script

Add these scripts to the bottom of your HTML:

1<script src="https://unpkg.com/@material-tailwind/[email protected]/dist/material-tailwind.umd.min.js" defer></script>