svelte-page-tab

npm-version npm-license npm-download-month npm-min-size ci.yml website

🎹 Tab menu component that uses page as a state

â–· Installation

Current location : https://svelte-page-tab.jill64.dev/page1

<script>
  import { TabItems } from "svelte-page-tab"
</script>

<ul>
  <TabItems
    prefix="/{$page.params.page}"
    routes={new Map([
      ["", "Overview"],
      ["/section1", "Section 1"],
      ["/section2", "Section 2"],
      ["/section3", "Section 3"]
    ])}
  />
</ul>