@berg-layout/react
v7.0.2
Published
This is the React version of berg-layout.
Downloads
57
Maintainers
Readme
@berg-layout/react
This is the React version of berg-layout.
Usage
Usage and demo here.
Documentation
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 contentpart="overflow"
which handles overflow and wrapscontent
To for example, style content
, use ::part
.berg-panel-top {
&::part(content) {
padding: 16px;
}
}