Home > @xoram/plugin-panoramique > ComponentDefinition > children
ComponentDefinition.children property
The id of the other harnesses to mount as the component's children in its slots.
Signature:
typescript
children?: ChildrenIds | HarnessChildren<component>;
1
Example
ts
register({
id: 'named slot',
type: ExampleComponent,
children: {
slotName: ['childId'],
}
});
register({
id: 'default slot',
type: ExampleComponent,
children: ['childId'],
});
register({
id: 'mixed slot',
type: ExampleComponent,
children: {
default: ['childId'],
slotName: ['otherChildId'],
}
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20