Skip to content

Toast

Show design guidelines

HTML React Angular
Along with a description that follows the title.
<certara-toast headline="Notice title">
Along with a description that follows the title.
</certara-toast>
import { CertaraToast } from '@certara/certara-ui-react';
<CertaraToast headline="Notice title">
Along with a description that follows the title.
</CertaraToast>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-toast headline="Notice title">
Along with a description that follows the title.
</certara-toast>
HTML React Angular
Click the X to dismiss this toast.
<certara-toast dismissible headline="Dismissible">Click the X to dismiss this toast.</certara-toast>
import { CertaraToast } from '@certara/certara-ui-react';
<CertaraToast dismissible headline="Dismissible">Click the X to dismiss this toast.</CertaraToast>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-toast dismissible headline="Dismissible">Click the X to dismiss this toast.</certara-toast>
HTML React Angular
<certara-toast variant="success" align-content="left" headline="Left aligned"></certara-toast>
import { CertaraToast } from '@certara/certara-ui-react';
<CertaraToast variant="success" alignContent="left" headline="Left aligned" />
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-toast variant="success" align-content="left" headline="Left aligned"></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