You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<gem-panel>`[shadowDOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM), so it is most appropriate to use custom elements for the panel content. e.g:
4
+
5
+
```ts
6
+
const panel =newPanel('id', {
7
+
title: 'title',
8
+
content: newMyElement(),
9
+
});
10
+
```
11
+
12
+
There is a disadvantage of directly specifying the content as a custom element instance, they are resident in memory, but can use lit-html template to solve this problem:
13
+
14
+
```ts
15
+
const panel =newPanel('id', {
16
+
title: 'title',
17
+
content: html`<my-element></my-element>`,
18
+
});
19
+
```
20
+
21
+
If you want to use `<gem-panel>` in other frameworks, you need to use the `renderContent` factory function:
0 commit comments