Skip to components
DEVELOPER REFERENCE · v4.0.0

Disclosure API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Disclosure5 props1 callbacks0 methods

Props5

Disclosure props
NameTypeDescription
childrenOptional
ComponentChildrenInspect type
Content rendered inside the component. Supply nodes from the framework adapter you are using.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
labelOptionalstring | undefinedLabel content or accessible name for the component, as rendered by this control.
summaryRequired
ComponentChildrenInspect type
Summary content displayed before the component details.
openOptionalboolean | undefinedExpanded or visible state of the surface or disclosure.

Events and callbacks1

Disclosure events and callbacks
NameTypeDescription
onToggleOptional
h.JSX.GenericEventHandler<HTMLDetailsElement> | undefinedInspect type
Handles the native details toggle event; read currentTarget.open for the expanded state.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.