4.0.1 • Published 2 years ago

@berg-layout/web-component v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@berg-layout/web-component

This is the web-component version of berg-layout built using @angular/elements.

Check out the demo here.

Usage

First import the web-component. The import will call customElements.define and make berg-layout and berg-panel available.

import '@berg-layout/web-component';

Then add a layout and place panels using the slot attribute.

<berg-layout>
  <berg-panel slot="left" absolute="true"></berg-panel>
  <berg-panel></berg-panel>
</berg-layout>

Styles

To style the layout, install the package @berg-layout/styling. Then use prebuilt css or SASS, for example:

@import '~@berg-layout/styling/core.css';
@import '~@berg-layout/styling/dark.css';

For complete docs on styling, go to https://github.com/blidblid/berg-layout/tree/main/projects/styling.

API

See https://berg-layout-api.web.app/angular/api. But remember that web-component attributes are kebab cased.

<!-- 👍 -->
<berg-panel resize-disabled="true"></berg-panel>
<!-- 👎 -->
<berg-panel resizeDisabled="true"></berg-panel>
3.2.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.1.1

3 years ago

3.0.10

3 years ago

3.0.2

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.8

3 years ago

3.0.7

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.0

3 years ago

3.0.9

3 years ago

1.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago