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.

Use @atheory-ai/kitsune-ui/elements/kit-disclosure for the standalone class or /components/kit-disclosure for createKitDisclosureComponent. Both imports are registration-free; only /register registers the catalog. The factory borrows a compatible host session and preserves this renderer’s native controls/slots. See supplied participation for property bindings, fixed JSON interactions, working drafts and cleanup.