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 item starts expanded. |
.name | string | Shared group name — items with the same name open exclusively (only one at a time). |
.children | ReactNode | Content revealed when the item is expanded. required |
Props for DetailsItem — a single collapsible disclosure.