Skip to content

Instantly share code, notes, and snippets.

@yinkakun
Last active October 23, 2023 20:25
Show Gist options
  • Save yinkakun/eaf306397be29f9e85082563a1addffe to your computer and use it in GitHub Desktop.
Save yinkakun/eaf306397be29f9e85082563a1addffe to your computer and use it in GitHub Desktop.
Active style in sveltekit
<script lang="ts">
import NavLink from '$lib/components/nav-link.svelte';
import { User } from 'lucide-svelte';
</script>
<NavLink href="/settings">
<User size="16" strokeWidth={2} />
<span> Settings </span>
</NavLink>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment