Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

docs: document defaultOpen property for Accordion component

Summary

Added documentation for the defaultOpen boolean property that was recently added to the Accordion component in fern-platform#4376. This property allows developers to specify which accordions should be expanded by default when the page loads.

Changes:

  • Added defaultOpen to the Properties section in accordions.mdx with type, default value, and description
  • Added live examples showing defaultOpen={true} in action in both accordions.mdx and accordion-groups.mdx
  • Added a new "Default open state" accordion section in accordion-groups.mdx explaining the use case

Review & Testing Checklist for Human

  • Critical: View the actual docs pages (accordions and accordion-groups) to verify the examples with defaultOpen={true} are actually open by default when the page loads
  • Verify the property documentation accurately reflects the implementation (boolean type, defaults to false)
  • Check that the code examples are syntactically correct and consistent across both files

Test Plan

  1. Preview the docs site with these changes
  2. Navigate to the Accordions and Accordion Groups pages
  3. Verify that the "Accordion Open by Default" example and "Basic usage" accordion are expanded on page load
  4. Toggle them closed/open to ensure they still work interactively

Notes

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@dsinghvi dsinghvi requested a review from devalog October 24, 2025 01:25
@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions github-actions bot merged commit 5ab07fc into main Oct 26, 2025
2 checks passed
@github-actions github-actions bot deleted the devin/1761268929-document-accordion-defaultopen branch October 26, 2025 03:14
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