zudo-doc
GitHub repository

Type to search...

to open search from anywhere

Details

Created Mar 14, 2026Updated May 7, 2026Takeshi Takatsudo

Collapsible content sections using the HTML details/summary pattern.

Use <Details> for collapsible content sections. This component is globally available — no imports needed.

Basic Usage

Click to expand

This content is hidden by default and revealed when the user clicks the summary.

<Details title="Click to expand">
This content is hidden by default and revealed when the user clicks the summary.
</Details>

Default Title

When no title prop is provided, the summary text defaults to "Details".

Details

This collapsible section uses the default title.

<Details>
This collapsible section uses the default title.
</Details>

Rich Content

You can include any MDX content inside a <Details> block, including code blocks, lists, and other components.

Configuration Example

Here is a sample configuration: export default { site: "https://example.com", output: "static" }. Key points: the site field sets the base URL, the output field controls the build mode, all fields are optional with sensible defaults.

<Details title="Configuration Example">
Here is a sample configuration:

```ts

export default {
  site: "https://example.com",
  output: "static",
};

```

Key points:

- The `site` field sets the base URL
- The `output` field controls the build mode
- All fields are optional with sensible defaults
</Details>

Props

PropTypeDefaultDescription
titlestring"Details"The clickable summary text

Revision History

Takeshi TakatsudoCreated: 2026-03-14T21:09:11+09:00Updated: 2026-05-07T15:58:12+09:00

AI Assistant

Ask a question about the documentation.