DetailsPropsinterface
{
title: ReactNode;
open?: boolean | undefined;
name?: string | undefined;
children: ReactNode;
}| Property | Type | |
|---|---|---|
.title | ReactNode | Content of the always-visible summary (e.g. a question). required |
.open | boolean | Whether the panel starts expanded. |
.name | string | Shared group name — panels with the same name open exclusively (only one at a time). |
.children | ReactNode | Content revealed when the panel is expanded. required |
Props for <Details> — the summary title, the revealed content, and the open state.