From 3eafb413a48cde60dea8a7355ee621c6acca952f Mon Sep 17 00:00:00 2001
From: Doog <157747121+doogongithub@users.noreply.github.com>
Date: Wed, 21 Feb 2024 22:07:27 -0500
Subject: first commit

---
 fe/src/lib/Table.svelte | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 fe/src/lib/Table.svelte

(limited to 'fe/src/lib/Table.svelte')

diff --git a/fe/src/lib/Table.svelte b/fe/src/lib/Table.svelte
new file mode 100644
index 0000000..2df9f8c
--- /dev/null
+++ b/fe/src/lib/Table.svelte
@@ -0,0 +1,41 @@
+<script lang="ts">
+    export let data;
+    export let nofooter: boolean = false;
+    export let noheader: boolean = false;
+    export let title: string;
+</script>
+<table>
+    {#if title}
+    <h2>{title}</h2>
+    {/if}
+    {#if !noheader}
+    <thead>
+        <tr>
+            <th>
+                Data Header
+            </th>
+        </tr>
+    </thead>
+    {/if}
+    <tbody>
+        <tr>
+            <td>Data</td>
+        </tr>
+    </tbody>
+    {#if !nofooter}
+    <slot name="footer">
+       <tfoot>
+        <tr>
+            <td>Table Footer</td>
+        </tr>
+       </tfoot>
+    </slot>
+    {/if}
+</table>
+<style>
+table {
+    padding: 16px;
+    margin: 8px;
+    border: solid 1px black;
+}
+</style>
-- 
cgit v1.1

