Skip to content

Instantly share code, notes, and snippets.

@shinokada
Last active March 30, 2023 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinokada/a423737e8a2b2c6d574e95e63b13b054 to your computer and use it in GitHub Desktop.
Save shinokada/a423737e8a2b2c6d574e95e63b13b054 to your computer and use it in GitHub Desktop.
<script lang='ts'>
import "../app.postcss"
import { Navbar, NavBrand, NavLi, NavUl, NavHamburger } from 'flowbite-svelte'
</script>
<Navbar let:hidden let:toggle>
<NavBrand href="/">
<img
src="https://flowbite-svelte.com/images/flowbite-svelte-icon-logo.svg"
class="mr-3 h-6 sm:h-9"
alt="Flowbite-Svelte Logo"
/>
<span class="self-center whitespace-nowrap text-xl font-semibold dark:text-white">
Flowbite-Svelte
</span>
</NavBrand>
<NavHamburger on:click={toggle} />
<NavUl {hidden}>
<NavLi href="/" active={true}>Home</NavLi>
</NavUl>
</Navbar>
<main class='p-8 h-auto'>
<slot />
</main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment