summaryrefslogtreecommitdiff
path: root/ui/routes/(swatch)/.swatch/Conversation/+page.svelte
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-07-08 19:45:49 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-07-08 19:45:49 -0400
commita2a0ec035f74a454df5a76ed999355f536f5b277 (patch)
treec960ce63f6e32d859d3c3de501d15c50b144dbcf /ui/routes/(swatch)/.swatch/Conversation/+page.svelte
parentc631c8fc855b1854f14fc7fbf1d8afedaa37a0db (diff)
Create a swatch for the `Conversation` component.
Diffstat (limited to 'ui/routes/(swatch)/.swatch/Conversation/+page.svelte')
-rw-r--r--ui/routes/(swatch)/.swatch/Conversation/+page.svelte31
1 files changed, 31 insertions, 0 deletions
diff --git a/ui/routes/(swatch)/.swatch/Conversation/+page.svelte b/ui/routes/(swatch)/.swatch/Conversation/+page.svelte
new file mode 100644
index 0000000..0b98204
--- /dev/null
+++ b/ui/routes/(swatch)/.swatch/Conversation/+page.svelte
@@ -0,0 +1,31 @@
+<script>
+ import Conversation from '$lib/components/Conversation.svelte';
+
+ let id = $state('Czero');
+ let name = $state('a long conversation');
+ let active = $state(false);
+ let hasUnreads = $state(false);
+</script>
+
+<h1><code>Conversation</code></h1>
+
+<nav><p><a href=".">Back to swatches</a></p></nav>
+
+<h2>properties</h2>
+
+<div class="component-properties">
+ <label>id <input type="text" bind:value={id} /></label>
+ <label>name <input type="text" bind:value={name} /></label>
+ <label>active <input type="checkbox" bind:checked={active} /></label>
+ <label>has unreads <input type="checkbox" bind:checked={hasUnreads} /></label>
+</div>
+
+<h2>rendered</h2>
+
+<div class="component-preview">
+ <nav class="list-nav">
+ <ul>
+ <Conversation {id} {name} {active} {hasUnreads} />
+ </ul>
+ </nav>
+</div>