From 092aabaccb9fbe5ac96de371eaa9b4901bbca8be Mon Sep 17 00:00:00 2001 From: sj Date: Thu, 19 Dec 2024 16:17:58 -0500 Subject: [PATCH] See issue #18: Added heroicons --- src/routes/examples/checkbox/+page.svelte | 17 ++++-- src/routes/examples/fieldset/+page.svelte | 14 ++++- src/routes/examples/listbox/+page.svelte | 63 +++++++++++++++++------ src/routes/examples/select/+page.svelte | 14 ++++- 4 files changed, 83 insertions(+), 25 deletions(-) diff --git a/src/routes/examples/checkbox/+page.svelte b/src/routes/examples/checkbox/+page.svelte index 455d691..e7aec41 100644 --- a/src/routes/examples/checkbox/+page.svelte +++ b/src/routes/examples/checkbox/+page.svelte @@ -8,8 +8,17 @@ checked={false} class="group size-6 rounded-md bg-white/10 p-1 ring-1 ring-white/15 ring-inset data-checked:bg-white" > - - + + diff --git a/src/routes/examples/fieldset/+page.svelte b/src/routes/examples/fieldset/+page.svelte index 89923c1..ec68f21 100644 --- a/src/routes/examples/fieldset/+page.svelte +++ b/src/routes/examples/fieldset/+page.svelte @@ -30,10 +30,20 @@ - + --> + > + + diff --git a/src/routes/examples/listbox/+page.svelte b/src/routes/examples/listbox/+page.svelte index 6773cd9..7af2860 100644 --- a/src/routes/examples/listbox/+page.svelte +++ b/src/routes/examples/listbox/+page.svelte @@ -11,33 +11,62 @@ { id: 4, name: "Arlene Mccoy" }, { id: 5, name: "Devon Webb" }, ]; + + let selected = $state("hello"); + function handleChange() { + console.log("Changed"); + }
- - - - - - + --> - X + > + + - + --> + {#each people as person} - - - X - + + + --> + > + +
{person.name}
{/each} diff --git a/src/routes/examples/select/+page.svelte b/src/routes/examples/select/+page.svelte index 4d2813b..5632572 100644 --- a/src/routes/examples/select/+page.svelte +++ b/src/routes/examples/select/+page.svelte @@ -20,10 +20,20 @@ - + --> + > + +