svelte-navbar
Version:
A cool animated navbar component for Svelte that switches between a side and a bottom navbar in a very funky way
29 lines (18 loc) • 664 B
Markdown
well, as the name suggest this package provides a [svelte](https://svelte.dev)-component that would be used as a navbar.
`npm i svelte-navbar`
```svelte
<script lang="ts">
import Navbar, {NavbarItem} from 'svelte-navbar';
</script>
<Navbar>
<NavbarItem on:click={(e) => scrollTop()}>Home</NavbarItem>
<NavbarItem on:click={(e) => routeToPage('shop', false)}>Shop</NavbarItem>
</Navbar>
```
this is still WIP
an example can be found [here](https://hannesgith.github.io/) with implementation [here](https://github.com/HannesGitH/HannesGitH.github.io/blob/v2/src/routes/%2Bpage.svelte)