Skip to main content

BwDetails | bw-details

Overview​

The details component is a container that can be used to show and hide content. Use it to hide content that is not necessary to show all the time. Hidden content should not be accessible via tabing. It's name and api are inspired by the native html details element.

This component implements the disclosure pattern.

Usage​

Basic​

Cool stuff!

<bw-details summary="Show more cool stuff">
<p>Cool stuff!</p>
</bw-details>

Properties​

PropertyAttributeDescriptionTypeDefault
iconSideicon-sideThe side of the icon to show"left" | "right"'right'
iconToggleicon-toggleWhether to use an icon button to toggle the details contentbooleanfalse
openopenOpens and closes the details contentbooleanundefined
summarysummarySummary text that shows above the expandable content. You can override this using the summary slotstringundefined

Events​

EventDescriptionType
collapseEmiits when the details content is closedCustomEvent<any>
expandEmiits when the details content is openedCustomEvent<any>

Slots​

SlotDescription
The expandable content goes in the default slot
"end"
"start"
"summary"The summary text that shows above the expandable content

Shadow Parts​

PartDescription
"content"The container that contains the expandable content
"summary"The summary element that is rendered when you pass in the summary prop
"toggle"The button that toggle the expandable content

Dependencies​

Depends on​

Graph​


© 2026 United Systems & Software - All Rights Reserved.