Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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,19 +7,18 @@ Accordion Groups allow you to organize content into collapsible sections, making

<AccordionGroup>
<Accordion title="Basic usage">
Accordion Groups can contain multiple Accordion items. Each Accordion has a title and content that can be expanded or collapsed.
Accordion Groups can contain multiple Accordion items. Each Accordion 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
</Accordion>
</AccordionGroup>
```

</Accordion>

<Accordion title="Searchable content">
Expand All @@ -38,8 +37,8 @@ Accordion Groups allow you to organize content into collapsible sections, making
<Tabs>
<Tab title="Example">
<AccordionGroup>
<Accordion title="Simple text content">
This is a basic example with text content.
<Accordion title="Simple text content" defaultOpen={true}>
This is a basic example with text content. It's open by default when the page loads.
</Accordion>
<Accordion title="Text content with multimedia">
You can embed images, videos, and other media within accordions for rich interactive content.
Expand Down Expand Up @@ -69,8 +68,8 @@ Accordion Groups allow you to organize content into collapsible sections, making
<CodeBlock>
````jsx
<AccordionGroup>
<Accordion title="Simple text content">
This is a basic example with text content.
<Accordion title="Simple text content" defaultOpen={true}>
This is a basic example with text content. It's open by default when the page loads.
</Accordion>
<Accordion title="Text content with multimedia">
You can embed images, videos, and other media within accordions for rich interactive content.
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