Skip to content

feat: Add Accordion component with expandable panels - #176

Merged
fahimahammed merged 16 commits into
fahimahammed:stagefrom
Deepanshu1230:stage
Oct 4, 2025
Merged

feat: Add Accordion component with expandable panels#176
fahimahammed merged 16 commits into
fahimahammed:stagefrom
Deepanshu1230:stage

Conversation

@Deepanshu1230

@Deepanshu1230 Deepanshu1230 commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

Description

Added a new Accordion component that provides expandable/collapsible panels for organizing content.

Changes Made

  • Created Accordion.tsx component with expand/collapse functionality
  • Added smooth animations for panel transitions
  • Implemented single-panel-open behavior (clicking one closes others)
  • Added the component to components.tsx data file with preview and code examples
  • Included proper TypeScript interfaces for type safety

Features

  • ✅ Smooth expand/collapse animations
  • ✅ Compact and rounded design
  • ✅ Single active panel at a time
  • ✅ Customizable items via props
  • ✅ Fully responsive
  • ✅ Accessible with proper ARIA attributes

ScreenShots;

image image

Closes issue #5
Hacktoberfest'25
@fahimahammed You can Check

Usage Example

import Accordion from "@/components/ui/Accordion"

export function AccordionDemo() {
  const items = [
    {
      title: "✨ What is DevUI?",
      content: "DevUI is a modern, open-source component library..."
    }
  ]
  
  return <Accordion items={items} />
}

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @Deepanshu1230! Thanks for creating the pull request.
Soon the maintainers/owner will review it and provide you with feedback/suggestions.
Make sure to star this awesome repository and follow the account!

  • DevUI

@fahimahammed
fahimahammed merged commit de409f7 into fahimahammed:stage Oct 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants