@berg-layout/core
TypeScript icon, indicating that this package has built-in type declarations

7.2.2 • Public • Published

@berg-layout/core

This library contains the web-component version of berg-layout and all its styles.

Usage

Usage and demo here.

Documentation

  • Panel inputs and outputs here
  • Layout inputs and outputs here

Styling

Since berg-layout uses web components, the layout styles are encapsulated in the shadow DOM.

You can still style them, but you need to use the pseudo element ::part() to pierce the encapsulation.

Styling panels

The panels have two ::part()

  • part="content" which wraps your content
  • part="overflow" which handles overflow and wraps content

To for example, style content, use ::part

.berg-panel-top {
  &::part(content) {
    padding: 16px;
  }
}

/@berg-layout/core/

    Package Sidebar

    Install

    npm i @berg-layout/core

    Weekly Downloads

    187

    Version

    7.2.2

    License

    MIT

    Unpacked Size

    98.4 kB

    Total Files

    89

    Last publish

    Collaborators

    • blidblid