anki/ts/components/WithTheming.svelte
2021-05-18 16:32:29 +02:00

21 lines
440 B
Svelte

<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="typescript">
export let id: string | undefined = undefined;
let className = "";
export { className as class };
export let style: string;
</script>
<style lang="scss">
div {
display: contents;
}
</style>
<div {id} class={className} {style}>
<slot />
</div>