Skip to content

Toasts

Toast alerts are used to provide timely information about system occurrences as well as feedback on the outcome of user actions.

Show design guidelines

Along with a description that follows the title.
<certara-toast headline="Notice title">
Along with a description that follows the title.
</certara-toast>
Dismissible toasts have a close button
<certara-toast dismissible>
Dismissible toasts have a close button
</certara-toast>
<certara-toast variant="success" align-content="center" headline="Saved!">
</certara-toast>

alignContent

Attributealign-content
Type"center" | "left" | "right"
Default'left'
Requiredfalse
DescriptionThe content alignment inside the toast

dismissible

Attributedismissible
Typeboolean
Defaultfalse
Requiredfalse
DescriptionIf true, the toast can be dismissed by clicking the close button

headline

Attributeheadline
Typestring
Defaultundefined
Requiredfalse
DescriptionThe bolded first sentence of the toast

shake

Attributeshake
Typeboolean
Defaultfalse
Requiredfalse
DescriptionIf true, the toast will shake when it appears

variant

Attributevariant
Type"danger" | "info" | "success" | "warning"
Default'info'
Requiredfalse
Descriptionsets the theme/color of the toast
NameDescriptionBubbles
certaraCloseEvent emitted when the toast is closed if dismissible is truetrue

There are no public methods available for this component

NameDescription
Default toast content
toast-ctasSlot for additional call-to-action buttons or links