anki/ts/components/Container.svelte

20 lines
501 B
Svelte
Raw Normal View History

2021-05-29 17:01:56 +02:00
<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
import Section from "./Section.svelte";
export let id: string | undefined = undefined;
let className: string = "";
export { className as class };
export let api: Record<string, never> | undefined = undefined;
</script>
<div {id} class={`container mb-1 ${className}`}>
<Section {api}>
<slot />
</Section>
</div>