From 18c458d91ca5e7187ffb3615fca8970fc6e4ca65 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Mon, 6 Jun 2022 15:48:53 +0200
Subject: feat: More work on portal

---
 .../src/components/breadcrumb/crumb.svelte         | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 apps/web-shared/src/components/breadcrumb/crumb.svelte

(limited to 'apps/web-shared/src/components/breadcrumb/crumb.svelte')

diff --git a/apps/web-shared/src/components/breadcrumb/crumb.svelte b/apps/web-shared/src/components/breadcrumb/crumb.svelte
new file mode 100644
index 0000000..7621de6
--- /dev/null
+++ b/apps/web-shared/src/components/breadcrumb/crumb.svelte
@@ -0,0 +1,22 @@
+<script>
+	export let name;
+	export let withArrow = false;
+	export let isLink = false;
+</script>
+<li class="breadcrumbs__item">
+    <span class="color-inherit {isLink ? 'cursor-pointer color-primary-light' : ''}"
+          on:click>{name}</span>
+    {#if withArrow}
+        <svg class="icon margin-left-xxxs color-contrast-low"
+             aria-hidden="true"
+             viewBox="0 0 16 16">
+            <polyline fill="none"
+                      stroke="currentColor"
+                      stroke-width="1"
+                      stroke-linecap="round"
+                      stroke-linejoin="round"
+                      stroke-miterlimit="10"
+                      points="6.5,3.5 11,8 6.5,12.5 "></polyline>
+        </svg>
+    {/if}
+</li>
-- 
cgit v1.3

