Skip to content

kit-disclosure

<kit-disclosure> wraps native <details> and <summary> so disclosure behavior, keyboard handling, and semantics stay with the browser.

<kit-disclosure summary="Advanced settings">
<p>Additional configuration lives here.</p>
</kit-disclosure>
AttributeTypeNotes
openbooleanReflects the native disclosure state.
summarystringFallback summary text when no slot="summary" is provided.
  • kit-disclosure-toggle — emitted when the native details state changes, with { open }.
  • summary — optional custom summary content.
  • default — disclosure content.