Zum Hauptinhalt springen Seitenleiste
Zum Inhaltsverzeichnis springen

    Callout

    <pc-callout> 0.5.1 experimental

    Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

    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>
    Code Edit

    Demos#

    Appearances#

    Set the appearance attribute to change the callout’s appearance.

    Edit

    Variants#

    Use the variant attribute to change the callout’s variant.

    Edit

    Sizes#

    Use the size attribute to change the callout’s size.

    Edit

    No icons#

    Icons are optional. Simply omit the icon slot if you don’t want them.

    Edit

    Properties#

    NameDescriptionReflectsDefault
    appearanceThe callout’s appearance.
    Type: "primary" | "success" | "neutral" | "warning" | "danger"
    "primary"
    variantThe callout’s variant.
    Type: "accent" | "filled" | "outlined" | "plain" | "accent outlined" | "filled outlined"
    "filled outlined"
    sizeThe callout’s size.
    Type: "small" | "medium" | "large"
    "medium"
    updateComplete A read‐only promise that resolves when the component has finished updating.

    Learn more about attributes and properties.

    Slots#

    NameDescription
    (default)The callout’s content.
    iconAn informational icon.

    Learn more about using slots.

    Parts#

    NameDescription
    baseThe component’s base wrapper.
    iconThe callout’s icon.
    messageThe callout’s content.

    Learn more about customising CSS parts.

    Importing#

    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.

    <script type="module" src="https://cdn.jsdelivr.net/npm/placer-toolkit@1.0.0-alpha.3/cdn/components/callout/callout.js"></script>

    To manually import this component from the CDN, copy this code snippet and paste it in your JavaScript file.

    import "https://cdn.jsdelivr.net/npm/placer-toolkit@1.0.0-alpha.3/cdn/components/callout/callout.js";

    To manually import this component from npm, copy this code snippet and paste it in your JavaScript file.

    import "placer-toolkit/dist/components/callout/callout.js";

    Wir würden uns freuen, von dir zu hören. Bitte kontaktiere uns bei Fragen oder Anliegen, die du hast.

    Du kannst uns per E‐Mail unter placer.coc.reports+contact@gmail.com erreichen.

    Wir freuen uns darauf, von dir zu hören!

    Alles klar!
    Gefährliche Lande

    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!