Alert
Variants
Section titled “Variants”Along with a description that follows the title.
example prop instead on ComponentPreview. Along with a description that follows the title.
MDX may have transformed content. Use example prop instead on ComponentPreview. Along with a description that follows the title.
MDX may have transformed content. Use example prop instead on ComponentPreview. Dismissible alerts have a close button
example prop instead on ComponentPreview. Alert with a headline
MDX may have transformed content. Use example prop instead on ComponentPreview. Will appear with a shake animation
MDX may have transformed content. Use example prop instead on ComponentPreview. Formatted buttons with alert-ctas slot
Save Cancel MDX may have transformed content. Use example prop instead on ComponentPreview. Alignment
Section titled “Alignment”certara-alert
Section titled “certara-alert”Properties
Section titled “Properties”alignContent
| Attribute | align-content |
| Type | "center" | "left" | "right" |
| Default | 'left' |
| Required | false |
| Description | The content alignment inside the alert |
dismissible
| Attribute | dismissible |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the alert can be dismissed by clicking the close button |
headline
| Attribute | headline |
| Type | string |
| Default | undefined |
| Required | false |
| Description | The bolded first sentence of the alert |
shake
| Attribute | shake |
| Type | boolean |
| Default | false |
| Required | false |
| Description | If true, the alert will shake when it appears |
toast
| Attribute | toast |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Internal prop. If true, the alert will be displayed as a toast, fades and animates in, then typically disappears after a few seconds or is present until the user dismisses it. Preferable to use the certara-toast component instead |
variant
| Attribute | variant |
| Type | "danger" | "info" | "success" | "warning" |
| Default | 'info' |
| Required | false |
| Description | sets the theme/color of the alert |
Events
Section titled “Events”| Name | Description | Bubbles |
|---|---|---|
certaraClose | Event emitted when the alert is closed if dismissible is true | true |
Methods
Section titled “Methods”There are no public methods available for this component
| Name | Description |
|---|---|
| Default alert content | |
alert-ctas | Slot for additional call-to-action buttons or links |