Show/Hide
Show/Hide is used to show more of the same content that is already visible. For example a list of items or attributes that is longer than its initial container view allows.
Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus.
Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus. Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus.
certara-show-hide
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
closedLabel | closed-label | Default label for closed state | string | 'Show more' |
open | open | Hidden content will be visible | boolean | false |
openedLabel | opened-label | Default label for opened state | string | 'Show less' |
Events
| Event | Description | Type |
|---|---|---|
certaraClick | CustomEvent<any> |
Slots
| Slot | Description |
|---|---|
| Container for visible content | |
"hidden-content" | Container for the hidden content |
Custom labels...
This example uses the opened-label and closed-label attributes
Open example
This is open by default