anki/ts/deck-options/TitledContainer.svelte

23 lines
530 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">
import Container from "../components/Container.svelte";
2021-05-29 17:01:56 +02:00
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>
<Container --gutter-block="2px" --container-margin="0" {api}>
<h1>{title}</h1>
2021-05-29 17:01:56 +02:00
<slot />
</Container>
2021-05-27 23:19:05 +02:00
<style lang="scss">
h1 {
border-bottom: 1px solid var(--medium-border);
}
</style>