1
0
Fork 0
mirror of synced 2024-09-13 15:57:37 +12:00
budibase/packages/standard-components/src/Embed.svelte
2020-11-20 09:50:10 +00:00

23 lines
348 B
Svelte

<script>
import { getContext } from "svelte"
const { styleable } = getContext("sdk")
const styles = getContext("style")
export let embed
</script>
<div use:styleable={styles}>
{@html embed}
</div>
<style>
div {
position: relative;
}
div :global(> *) {
width: 100%;
height: 100%;
position: absolute;
}
</style>