blob: d7cd900664fc0d493223989b344a2af02d4c6658 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<script lang="ts">
export let title = "";
export let height: number | undefined = undefined;
</script>
<div class="card">
{#if title}
<h2>{title}</h2>
{/if}
<slot />
</div>
<style>
.card {
background: #fff;
display: flex;
flex-direction: column;
align-items: flex-start;
border: solid 2px #00000066;
border-radius: 0.25em;
height: var(--height, fit-content);
overflow-y: var(--overflow, initial);
}
</style>
|