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

15 lines
288 B
Svelte
Raw Normal View History

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