anki/ts/deckoptions/TitledContainer.svelte

25 lines
529 B
Svelte
Raw Normal View History

2021-05-27 23:19:05 +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">
2021-05-29 17:01:56 +02:00
import Section from "components/Section.svelte";
2021-05-27 23:19:05 +02:00
export let title: string;
2021-05-29 17:01:56 +02:00
export let api: Record<string, never> | undefined = undefined;
2021-05-27 23:19:05 +02:00
</script>
<div class="container-fluid my-4">
<h1>{title}</h1>
2021-05-29 17:01:56 +02:00
<Section {api}>
<slot />
</Section>
2021-05-27 23:19:05 +02:00
</div>
<style lang="scss">
h1 {
border-bottom: 1px solid var(--medium-border);
}
</style>