feat: switch to svelte-markdown
This commit is contained in:
1 parent
2b642b0926
commit
98a899c596
27 files changed
+510
-139
No files matched your search
@@ -0,0 +1,3 @@
|
||||
<table class="overflow-auto w-full table-fixed rounded-xl">
|
||||
<slot />
|
||||
</table>
|
||||
@@ -0,0 +1 @@
|
||||
<tbody><slot /></tbody>
|
||||
@@ -0,0 +1,27 @@
|
||||
<script lang="ts">
|
||||
export let header: boolean
|
||||
export let align:
|
||||
| 'left'
|
||||
| 'center'
|
||||
| 'right'
|
||||
| 'justify'
|
||||
| 'char'
|
||||
| null
|
||||
| undefined = undefined
|
||||
</script>
|
||||
|
||||
{#if header}
|
||||
<th
|
||||
class="bg-slate-50 dark:bg-zinc-900 border border-slate-200 dark:border-zinc-800 py-2 px-3"
|
||||
{align}
|
||||
>
|
||||
<slot />
|
||||
</th>
|
||||
{:else}
|
||||
<td
|
||||
class="bg-slate-25 dark:bg-zinc-950 border border-slate-200 dark:border-zinc-800 py-2 px-3"
|
||||
{align}
|
||||
>
|
||||
<slot />
|
||||
</td>
|
||||
{/if}
|
||||
@@ -0,0 +1 @@
|
||||
<thead><slot /></thead>
|
||||
@@ -0,0 +1 @@
|
||||
<tr><slot /></tr>
|
||||
Reference in new issue
Block a user