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

0.0.3 • Public • Published

nprogress in svelte

refer https://github.com/rstacruz/nprogress

usage

$ npm install --save-dev svelte-nprogress
  • in +layout.svelte
<script lang="ts">
	import NProgress from '$lib/NProgress.svelte'
	import { navigating } from '$app/stores'
	let color = 'red' // or #f00
</script>

<NProgress isNavigating={Boolean($navigating)} {color}></NProgress>

Readme

Keywords

none

Package Sidebar

Install

npm i svelte-nprogress

Weekly Downloads

2

Version

0.0.3

License

none

Unpacked Size

3.55 kB

Total Files

6

Last publish

Collaborators

  • munenari