Zum Hauptinhalt springen Seitenleiste
Zum Inhaltsverzeichnis springen

    Divider

    <pc-divider> 0.5.1 experimental

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

    Dividers are used to visually separate or group elements.

    <pc-divider></pc-divider>
    Code Edit

    Demos#

    Stroke width#

    Use the --stroke-width custom property to change the stroke width of the divider.

    Edit

    Colour#

    Use the --color custom property to change the colour of the divider.

    Edit

    Spacing#

    Use the --spacing custom property to change the amount of space between the divider and its neighbouring elements.

    Edit

    Orientation#

    Set the orientation attribute to vertical to orientate the divider vertically. The divider will span the full height of its container. Vertical dividers work especially well inside of a flex container.

    Edit

    Properties#

    NameDescriptionReflectsDefault
    orientationSets the orientation of the divider.
    Type: "horizontal" | "vertical"
    "horizontal"
    updateComplete A read‐only promise that resolves when the component has finished updating.

    Learn more about attributes and properties.

    Custom properties#

    NameDescriptionDefault
    --colorThe colour of the divider.var(--pc-color-surface-border)
    --stroke-widthThe stroke width of the divider line.var(--pc-panel-border-width)
    --spacingThe spacing of the divider.var(--pc-content-spacing)

    Learn more about customising custom properties.

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

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

    import "placer-toolkit/dist/components/divider/divider.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!