From 7c6c810efc629b3584157f04298db9e93bd920f0 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Wed, 7 Dec 2022 18:13:08 -0500 Subject: [PATCH] Bring back the docs for components and improve the Icon demo. --- admin/bando/Components.svelte | 5 +- admin/bando/demos/Icon.svelte | 126 +++++++------------------------ admin/bando/demos/Icon.svelte.md | 5 ++ 3 files changed, 38 insertions(+), 98 deletions(-) create mode 100644 admin/bando/demos/Icon.svelte.md diff --git a/admin/bando/Components.svelte b/admin/bando/Components.svelte index 6f8ba79..7200ec4 100644 --- a/admin/bando/Components.svelte +++ b/admin/bando/Components.svelte @@ -204,11 +204,14 @@ {#if show == "CODE"} - + {:else if show == "DOCS"} {#await load_docs(selected) then docs } {#if docs} + {:else} +

No Docs

+

This component is not documented yet.

{/if} {/await} {:else} diff --git a/admin/bando/demos/Icon.svelte b/admin/bando/demos/Icon.svelte index 86bafe7..3828d86 100644 --- a/admin/bando/demos/Icon.svelte +++ b/admin/bando/demos/Icon.svelte @@ -1,114 +1,46 @@ - - inactive = !inactive }> - - { message } - - - -{#each icons as name} - gen_code(name) }> - - {#if labels} - { name } - {/if} - -{:else} -

No Icons

-{/each} + +
size:
+
fill:
+
width:
+
color:
+
shadow:
+
tooltip:
+
tip_position:
+ + + + + +
+ +
+ diff --git a/admin/bando/demos/Icon.svelte.md b/admin/bando/demos/Icon.svelte.md new file mode 100644 index 0000000..81ff81b --- /dev/null +++ b/admin/bando/demos/Icon.svelte.md @@ -0,0 +1,5 @@ +# Icons by lucide + +The Bandolier includes the great icon collection from lucide to get you started. Probably every icon you could possibly need is in this collection, and there's a nice Icon Finder tool to find what you need at /admin/#/icons/. + +Using `Icon` is very simple. You find the name, and can set a size, whether it's inactive or not, and a few other options to control the appearance. In the Icon Finder you can click on an icon to copy the code for it.