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>Attributes
Section titled “Attributes”| Attribute | Type | Notes |
|---|---|---|
open | boolean | Reflects the native disclosure state. |
summary | string | Fallback summary text when no slot="summary" is provided. |
Events
Section titled “Events”kit-disclosure-toggle— emitted when the native details state changes, with{ open }.
summary— optional custom summary content.- default — disclosure content.