aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/routes/book/inputs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-17 16:13:14 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-17 16:16:45 +0100
commitb60a027a4ab9203388470ac51114638983a183da (patch)
treee1bf22a068693e163a8b0fe3ac10199c5b27cca6 /code/app/src/routes/book/inputs
parent63e849c4dbb3e3c8771d14a309edf5083c672f74 (diff)
downloadgreatoffice-b60a027a4ab9203388470ac51114638983a183da.tar.xz
greatoffice-b60a027a4ab9203388470ac51114638983a183da.zip
feat: Support multiple errors
Diffstat (limited to 'code/app/src/routes/book/inputs')
-rw-r--r--code/app/src/routes/book/inputs/+page.svelte13
1 files changed, 6 insertions, 7 deletions
diff --git a/code/app/src/routes/book/inputs/+page.svelte b/code/app/src/routes/book/inputs/+page.svelte
index 9118a54..7ca0d31 100644
--- a/code/app/src/routes/book/inputs/+page.svelte
+++ b/code/app/src/routes/book/inputs/+page.svelte
@@ -28,13 +28,7 @@
<section>
<h2>Combobox</h2>
- <Combobox
- {options}
- label="Wiii"
- multiple
- createable
- on_create_async={add}
- />
+ <Combobox {options} label="Wiii" multiple createable on_create_async={add} />
</section>
<section>
@@ -63,6 +57,11 @@
</section>
<section>
+ <h2>Many errors</h2>
+ <Input label="No" placeholder="Sorry" errors={["That's not right", "Call help!", "Get it together"]} bind:value icon={DatabaseIcon} />
+</section>
+
+<section>
<h2>Help</h2>
<Input label="Go ahead" placeholder="Write here" helpText="Write above" bind:value />
</section>