Navigation
Disclosure
A native details/summary disclosure.
components.Disclosure · DisclosureProps
Preview
Open standalone preview →A little more context
Native details and summary provide keyboard-operable disclosure behavior.
Explore grouped disclosuresUse it well.
Name groups panels in supporting browsers; older browsers may allow several to stay open. Keep controls in the body, outside Summary.
Explore the full demo →Templ example
Download example.templThis is the source compiled for the preview. Select the text to copy it, or download the file. Change the package name and demo routes for your application.
package examples
import "github.com/Tend-Stack/GothUI/v2026/components"
templ ExampleDisclosure() {
@components.Disclosure(components.DisclosureProps{Summary: "A little more context"}) {
<p>Native details and summary provide keyboard-operable disclosure behavior.</p><a href="/patterns?section=disclosures">Explore grouped disclosures</a>
}
}