Skip to content

Commit b354a61

Browse files
committed
✨ Add link to shadcn/ui docs
1 parent 5d45c72 commit b354a61

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/components/layout/showSidebarLinks.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import Cloud from "@lucide/svelte/icons/cloud";
1515
import Submit from "@lucide/svelte/icons/send";
1616
import Github from "@/components/logos/github.svelte";
17+
import Shadcn from "@/components/logos/shadcn.svelte";
1718
1819
let favorites = $derived($favoritesStore);
1920
let favoritesCount = $derived(favoritesStore.getCount(favorites));
@@ -53,7 +54,7 @@
5354
{/if}
5455
</a>
5556
<a
56-
href="/api"
57+
href="/docs/api"
5758
data-sveltekit-preload-data
5859
class={cn(
5960
sidebarItemClasses.base,
@@ -64,6 +65,19 @@
6465
<Cloud size={16} />
6566
<p class="truncate">API</p>
6667
</a>
68+
<a
69+
href="/docs/shadcn-ui"
70+
data-sveltekit-preload-data
71+
class={cn(
72+
sidebarItemClasses.base,
73+
"justify-start space-x-3",
74+
String(page.url.pathname) === "/docs/shadcn-ui" &&
75+
sidebarItemClasses.active,
76+
)}
77+
>
78+
<Shadcn size={14} />
79+
<p class="truncate">shadcn/ui</p>
80+
</a>
6781
<a
6882
href="/extensions"
6983
data-sveltekit-preload-data

0 commit comments

Comments
 (0)