Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Callouts are used to display important messages inline.
<pc-callout><pc-iconlibrary="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>
CodeEdit
Demos
Appearances
Set the appearance attribute to change the callout’s appearance.
<divclass="pc-stack"><pc-calloutappearance="primary"><pc-iconlibrary="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><pc-calloutappearance="success"><pc-iconlibrary="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><pc-calloutappearance="neutral"><pc-iconlibrary="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><pc-calloutappearance="warning"><pc-iconlibrary="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><pc-calloutappearance="danger"><pc-iconlibrary="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></div>
CodeEdit
Variants
Use the variant attribute to change the callout’s variant.
<divclass="pc-stack"><pc-calloutappearance="primary"variant="accent"><pc-iconlibrary="default"icon-style="solid"name="square-check"slot="icon"></pc-icon> This <strong>accent</strong> callout draws attention.</pc-callout><pc-calloutappearance="primary"variant="filled outlined"><pc-iconlibrary="default"icon-style="solid"name="fill-drip"slot="icon"></pc-icon> This callout is both <strong>filled</strong> and <strong>outlined</strong>.</pc-callout><pc-calloutappearance="primary"variant="filled"><pc-iconlibrary="default"icon-style="solid"name="fill"slot="icon"></pc-icon> This callout is only <strong>filled</strong>.</pc-callout><pc-calloutappearance="primary"variant="outlined"><pc-iconlibrary="default"icon-style="solid"name="lines-leaning"slot="icon"></pc-icon> Here’s an <strong>outlined</strong> callout.</pc-callout><pc-calloutappearance="primary"variant="plain"><pc-iconlibrary="default"icon-style="solid"name="font"slot="icon"></pc-icon> No bells and whistles on this <strong>plain</strong> callout.</pc-callout></div>
CodeEdit
Sizes
Use the size attribute to change the callout’s size.
<divclass="pc-stack"><pc-calloutsize="large"><pc-iconlibrary="default"icon-style="solid"name="circle-info"slot="icon"></pc-icon> This is meant to be <strong>very</strong> emphasised.</pc-callout><pc-calloutsize="medium"><pc-iconlibrary="default"icon-style="solid"name="circle-info"slot="icon"></pc-icon> This is a normal‐sized callout.</pc-callout><pc-calloutsize="small"><pc-iconlibrary="default"icon-style="solid"name="circle-info"slot="icon"></pc-icon> Just a small tip!</pc-callout></div>
CodeEdit
No icons
Icons are optional. Simply omit the icon slot if you don’t want them.
<pc-calloutappearance="primary"> Nothing fancy here, just a simple callout.</pc-callout>
Wenn du den Auto‐Loader oder den Standard‐Loader nutzt, kannst du diesen Abschnitt überspringen. Falls du dich für „Cherry‐Picking“ entschieden hast, kannst du die folgenden Snippets verwenden, um diese Komponente zu importieren.
CDN (Skript‐Tag)CDN (Import)npm (Import)
Um diese Komponente manuell vom CDN zu importieren, kannst du dieses Code‐Snippet kopieren und es in dein HTML einfügen.
Ui! Du bist in die gefährlichen Lande von Placer Toolkit geraten. Version 0 ist veraltet und entspricht nicht den EU‐Datenschutzstandards, einschließlich DSGVO.
Willst du die neuesten Kräfte, Sicherheit und Compliance? Bleib bei der aktuellen Version von Placer Toolkit!
Ups!Aufladen!
Unsere Website ist zu 100 % frei von Cookies! Wir legen großen Wert auf deine Privatsphäre und speichern daher keinerlei Cookies oder persönliche Informationen über dich.
Dein Browserverlauf bleibt sauber und deine Daten sind geschützt, ganz im Einklang mit modernen Datenschutzstandards wie der DSGVO. Genieße deinen Besuch ganz ohne digitale Cookies! 🍪🚫