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.
The hidden content that is now shown.
certara-disclosure
Properties
| Property | Attribute | Description | Type | Default |
|---|
arrowEnd | arrow-end | Disclosure arrow will show at the end of the content | boolean | false |
hasPadding | has-padding | Content is padded to be flush with the opener | boolean | false |
innerClassName | inner-class-name | Additional class name(s) to apply to the inner content wrapper | string | undefined |
open | open | Hidden content will be visible | boolean | false |
summary | summary | Visible label of the disclosure control | string | undefined |
Slots
| Slot | Description |
|---|
| Content hidden by the disclosure goes in the main slot |
"custom-summary" | Slot available if summary requires custom formatting |
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
Custom summary
More complex formatting is available within a slot="custom-summary" element
Label
The hidden content that is now shown.