Callouts are used to display important messages inline.
<pc-callout>
<pc-icon
library="default"
icon-style="solid"
name="circle-info"
slot="icon"
></pc-icon>
This is a standard callout. You can customise its content and even the icon.
</pc-callout>
Set the appearance attribute to change the callout’s appearance.
<pc-callout appearance="primary">
<pc-icon
library="default"
icon-style="solid"
name="circle-info"
slot="icon"
></pc-icon>
<strong>This is super informative</strong><br />
You can tell by how pretty the callout is.
</pc-callout>
<br />
<pc-callout appearance="success">
<pc-icon
library="default"
icon-style="solid"
name="circle-check"
slot="icon"
></pc-icon>
<strong>Your changes have been saved</strong><br />
You can safely exit the app now.
</pc-callout>
<br />
<pc-callout appearance="neutral">
<pc-icon
library="default"
icon-style="solid"
name="gear"
slot="icon"
></pc-icon>
<strong>Your settings have been updated</strong><br />
Settings will take effect on next login.
</pc-callout>
<br />
<pc-callout appearance="warning">
<pc-icon
library="default"
icon-style="solid"
name="triangle-exclamation"
slot="icon"
></pc-icon>
<strong>Your session has ended</strong><br />
Please login again to continue.
</pc-callout>
<br />
<pc-callout appearance="danger">
<pc-icon
library="default"
icon-style="solid"
name="circle-exclamation"
slot="icon"
></pc-icon>
<strong>Your account has been deleted</strong><br />
We’re very sorry to see you go!
</pc-callout>
Use the size attribute to change the callout’s size.
<pc-callout size="large">
<pc-icon
library="default"
icon-style="solid"
name="circle-info"
slot="icon"
></pc-icon>
This is meant to be <strong>very</strong> emphasised.
</pc-callout>
<br />
<pc-callout size="medium">
<pc-icon
library="default"
icon-style="solid"
name="circle-info"
slot="icon"
></pc-icon>
This is a normal‐sized callout.
</pc-callout>
<br />
<pc-callout size="small">
<pc-icon
library="default"
icon-style="solid"
name="circle-info"
slot="icon"
></pc-icon>
Just a small tip!
</pc-callout>
If you’re using the autoloader or the standard loader,
you can skip this section. But if you’re cherry picking,
you can use any of the following snippets to import this component.
CDN (script tag)CDN (import)npm (import)
To manually import this component from the CDN,
copy this code snippet and paste it in your HTML.