svelte-navbar
TypeScript icon, indicating that this package has built-in type declarations

0.0.122 • Public • Published

svelte navbar

well, as the name suggest this package provides a svelte-component that would be used as a navbar.

Installation

npm i svelte-navbar

Usage

<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>

API

this is still WIP

Example

an example can be found here with implementation here

Package Sidebar

Install

npm i svelte-navbar

Weekly Downloads

1

Version

0.0.122

License

MIT

Unpacked Size

14.8 kB

Total Files

10

Last publish

Collaborators

  • hannesgith