Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add-default-expanded-item-in-accordion #46

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

Harman-singh-waraich
Copy link
Contributor

@Harman-singh-waraich Harman-singh-waraich commented Apr 26, 2024

  • Adds prop defaultExpanded to optionally specify which item to have expanded by default in the Accordion.
  • It's only for the initial load, i.e, the item will only be expanded at initial load and can be collapsed

PR-Codex overview

The focus of this PR is to add a defaultExpanded prop to the Accordion component in the AccordionProps interface, allowing the component to start with a specific item expanded by default.

Detailed summary

  • Added defaultExpanded prop to AccordionProps
  • Initialized expanded state based on defaultExpanded prop or -1 if not provided

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

sonarcloud bot commented Apr 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@alcercu alcercu left a comment

Choose a reason for hiding this comment

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

lgtm

@alcercu alcercu merged commit 2fd1c7b into main Apr 26, 2024
3 checks passed
@alcercu alcercu deleted the feat/add-default-expanded-item-in-accordion branch April 26, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants