Widget Box
Remove default padding with the padded prop
Note the hr spanning the full width
widget-box-icon slot
Custom title
Custom headings with complex markup can be achieved with the widget-box-heading slot
Collapsible widget-box
Section titled “Collapsible widget-box”certara-widget-box
Section titled “certara-widget-box”Properties
Section titled “Properties”headline
| Attribute | headline |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Output in the header of the widget box |
icon
| Attribute | icon |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Set the icon name to display in the widget box header. If no icon is set, the default is lines. |
open
| Attribute | open |
| Type | boolean |
| Default | undefined |
| Required | false |
| Description | This sets the open state of the widget box and turns it into a disclosure width if present. If this is set to false, the widget box is collasped by default. |
padded
| Attribute | padded |
| Type | boolean |
| Default | true |
| Required | false |
| Description | If this is set to false, it zeros out the padding on the widget content, for instance if you want a full width table inside the widget box |
width
| Attribute | width |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Optional width of the card. Accepts a value of 30rem, 370px, or any valid CSS size value. |
Events
Section titled “Events”| Name | Description | Bubbles |
|---|---|---|
certaraToggle | Follows the native toggle event for the HTML <details> element to emit interaction with the control | true |
Methods
Section titled “Methods”There are no public methods available for this component
| Name | Description |
|---|---|
| Main slot for widget content | |
widget-box-footer | Slot for items appearing in the widget-box footer |
widget-box-heading | Slot for custom formatted heading |
widget-box-icon | Slot for custom header icon |
widget-header-right | Slot for right-aligned header content |