A native disclosure carries keyboard behaviour and expanded state without React state. A custom summary still needs a useful label.
Worked example
// components/NativeDisclosurePanel.tsx
import type { ReactNode } from "react";
export default function NativeDisclosurePanel({
title = "Delivery",
children = "Arrives in two days.",
}: { title?: string; children?: ReactNode } = {}) {
return (
<details>
<summary>{title}</summary>
{children}
</details>
);
}Implementation notes
Native details state belongs to the browser unless you deliberately control it. Recreating the element under a changing key can close it unexpectedly.
Try it yourself
Toggle it with the keyboard, then navigate through its revealed contents.
Open the React example →Editorial date February 11, 2026 · Published December 6, 2026