Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Accordion Groups allow you to organize content into collapsible sections, making

<AccordionGroup>
<Accordion title="Basic usage">
Accordion Groups can contain multiple Accordion items. Each item has a title and content that can be expanded or collapsed.
Accordion Groups can contain multiple Accordion items. Each item has a title and content that can be expanded or collapsed. You can use the `defaultOpen` prop to expand specific accordions by default when the page loads.

```jsx
<AccordionGroup>
<Accordion title="Section 1">
Content for section 1
<Accordion title="Section 1" defaultOpen={true}>
Content for section 1, expanded by default
</Accordion>
<Accordion title="Section 2">
Content for section 2
Expand All @@ -34,10 +34,6 @@ Accordion Groups allow you to organize content into collapsible sections, making

The recent update to our Accordion component improves content discoverability by allowing users to search through all content, including collapsed sections, using the browser's search function (Cmd+F / Ctrl+F).

### Usage examples

Here are some examples of how to use the Accordion Group component:

<Tabs>
<Tab title="Example">
<AccordionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,23 @@ description: 'Expand or collapse to reveal more information'
The Accordion component allows you to create expandable sections in your documentation. Content within accordions is searchable using browser search (cmd+f) even when collapsed. The component is optimized for SEO with server-side HTML generation, ensuring search engines can properly index all content within accordions.

<Tabs>
<Tab title="Example">
<Tab title="Examples">
<Accordion title='Single Accordion'>
This is an example of an accordion component. When clicked, it expands to reveal this additional content.
</Accordion>
<Accordion title='Accordion open by default' defaultOpen={true}>
You can use the `defaultOpen` property to have specific accordions expanded by default when the page loads. This is useful for highlighting important information or frequently accessed content.
</Accordion>
</Tab>
<Tab title="Markdown">
```jsx
<Accordion title='Single Accordion'>
This is an example of an accordion component. When clicked, it expands to reveal this additional content.
</Accordion>

<Accordion title='Accordion open by default' defaultOpen={true}>
You can use the `defaultOpen` property to have specific accordions expanded by default when the page loads. This is useful for highlighting important information or frequently accessed content.
</Accordion>
```
</Tab>
</Tabs>
Expand All @@ -30,4 +37,8 @@ The Accordion component allows you to create expandable sections in your documen
The content to be displayed when the accordion is expanded. Can include text, markdown, and components.
</ParamField>

<ParamField path="defaultOpen" type="boolean" default={false}>
Whether the accordion should be open when the page loads. If not specified, the accordion will be collapsed by default.
</ParamField>


4 changes: 2 additions & 2 deletions fern/products/sdks/overview/java/changelog/2025-10-23.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 3.9.2
**`(fix):`** Fix nullable field serialization in PATCH requests with wrapped request bodies. Explicit null values
(Nullable.ofNull()) are now correctly serialized as `{"field": null}` instead of being omitted like
Nullable.empty().
`(Nullable.ofNull())` are now correctly serialized as `{"field": null}` instead of being omitted like
`Nullable.empty()`.


## 3.9.1
Expand Down