budibase/packages/standard-components/src/Div.svelte

19 lines
279 B
Svelte
Raw Normal View History

2019-10-14 09:32:20 +02:00
<script>
2020-01-18 10:00:18 +01:00
export let _children = [];
2019-10-14 09:32:20 +02:00
export let className="";
export let onLoad;
export let _bb;
let rootDiv;
2020-01-18 10:00:18 +01:00
$:{
if(_bb && rootDiv && _children && _children.length)
_bb.hydrateChildren(_children, rootDiv);
2019-10-14 09:32:20 +02:00
}
</script>
<div class="{className}" bind:this={rootDiv}>
</div>