Show design guidelines
Disclosures are expandable areas of content that are summarized or otherwise labeled to indicate what they relate to. There is a trigger that must be manually selected which allows the user to show and hide the additional content that is available.
Framework HTML React Angular
Content of the disclosure is now shown
Disclosure can be set to be open by default
The disclosure arrow shows at the end of the opener
Content is padded to be flush with the opener
Additional descriptive text is available within a description prop
Content has an inner classname
Suppress the default hover by setting hasHover="false"
Custom summary More complex formatting is available within a slot="custom-summary" element
This description has rich formatting
More complex formatting is available within a slot="custom-description" element
Caret aligns to summary baseline
Caret aligns to summary center
Caret aligns to summary start
Caret aligns to summary end
alignItems
Attribute align-itemsType "baseline" | "center" | "end" | "start"Default undefinedRequired falseDescription Control vertical alignment of disclosure triange
arrowEnd
Attribute arrow-endType booleanDefault falseRequired falseDescription Disclosure arrow will show at the end of the content
description
Attribute descriptionType stringDefault undefinedRequired falseDescription Description text that appears below label
hasHover
Attribute has-hoverType booleanDefault trueRequired falseDescription Controls the default hover effect
hasPadding
Attribute has-paddingType booleanDefault falseRequired falseDescription Content is padded to be flush with the opener
innerClassName
Attribute inner-class-nameType stringDefault undefinedRequired falseDescription Additional class name(s) to apply to the inner content wrapper
open
Attribute openType booleanDefault falseRequired falseDescription Hidden content will be visible
summary
Attribute summaryType stringDefault undefinedRequired falseDescription Visible label of the disclosure control
There are no events available for this component
There are no public methods available for this component
Name Description Content hidden by the disclosure goes in the main slot custom-descriptionSlot available if description requires custom formatting custom-summarySlot available if summary requires custom formatting