3.1.0 • Published 9 months ago

@tadashi/svelte-loading v3.1.0

Weekly downloads
46
License
MIT
Repository
-
Last release
9 months ago

svelte-loading

NPM version Build Status Coverage Status


Svelte component

Install

$ npm i -S @tadashi/svelte-loading

CSS Vars

varsdefault
--uib-colorblack
--uib-sizedepends on loader
--uib-speeddepends on loader
--
--tadashi_svelte_loading_background_colorhsl(0deg 0% 0% / 20%)
--tadashi_svelte_loading_background_imagenone
--tadashi_svelte_loading_fixedfixed
--tadashi_svelte_loading_top0
--tadashi_svelte_loading_left0
--tadashi_svelte_loading_width100vw
--tadashi_svelte_loading_height100vh
--tadashi_svelte_loading_flexflex
--tadashi_svelte_loading_align_itemscenter
--tadashi_svelte_loading_justify_contentcenter
--tadashi_svelte_loading_zindex99

Usage

You can see an example here: https://svelte.dev/repl/be139b8c36074a9e9bbc824d6c8f0130

<script>
  import {Loading, acts} from '@tadashi/svelte-loading'

  function show() {
    acts.show(true)
  }

  function hide(event) {
    if (event.key === 'Escape') {
      event.preventDefault()
      acts.show(false)
    }
  }
</script>

<button type="button" on:click={show}>Show</button>

<Loading
  animation="ThreeBall"
  --tadashi_svelte_loading_background_color="hsl(100deg 50% 50% / 20%)"
  --tadashi_svelte_loading_zindex=1011
/>

<svelte:window on:keydown={hide} />

Loaders

Lightweight loaders built by Griffin Johnston for UI Ball.

Donate ❤️

BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4

License

MIT © Thiago Lagden MIT © Griffin Johnston

3.1.0

9 months ago

3.0.0

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago