Skip to content

MichealPearce/svelte-pager

Repository files navigation

svelte-pager

Simple page management with Svelte!

Setup

git clone https://github.com/MichealPearce/svelte-pager.git
cd svelte-pager
yarn install
yarn run dev

Build

yarn run build

Usage

<script>
	import {Page} from 'svelte-pager'
	import Home from './pages/Home.svelte'
	import About from './pages/About.svelte'
</script>

<Page
	title="Home"
	path="/"
	component={Home}
/>
<Page
	title="About"
	path="/about"
	component={About}
/>