Skip to main content Sidebar Design tokens Components Layout Style utilities

We’d love to hear from you. Please reach out to us with any questions or inquiries you may have.

You can contact us via e‐mail at placer.coc.reports+contact@gmail.com.

We look forward to hearing from you!

Got it!
Skip to table of contents

The Placer Toolkit alpha has arrived! 🎉
Plenty of changes are coming your way—some big, some breaking, some even nuclear! Beware the changelog…

Bring it on!

    Callout

    <pc-callout> 0.5.1 experimental

    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.1/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.1/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";