DEV Community

saim
saim

Posted on • Originally published at templateight.com

New Accordion UI Components for TailwindCSS (HTML, Vue, React)

Hey folks ๐Ÿ‘‹

I just built some beautiful, responsive accordion components using TailwindCSS and AlpineJS (with React & Vue support too ๐Ÿš€).

Perfect for FAQs, collapsible content, and expandable sections โ€” and theyโ€™re super easy to drop into any project.

๐Ÿ‘‰ Live Demo + Source: Accordion Components

Accordion Components


๐Ÿ”ฅ Components Included

1. Basic Accordion

A simple, clean accordion perfect for FAQs or basic content organization.

Supports HTML, Vue, and JSX.


2. Plus/Minus Accordion

Accordion with plus/minus icons that smoothly animate between states.


3. Gradient Card Accordion

Colorful gradient cards with icons, shadow animations, and smooth slide effects.


๐Ÿš€ How to Use

Requirements

  • TailwindCSS v4.0+ installed โ†’ Install Guide
  • AlpineJS (for HTML version)
  • Heroicons (optional for icons)

React:

npm install @heroicons/react
Enter fullscreen mode Exit fullscreen mode

Vue:

npm install @heroicons/vue
Enter fullscreen mode Exit fullscreen mode

๐Ÿ”— See Also

Top comments (0)