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

1.0.1 • Public • Published

Svelte Snow

Properties

Parameter Type Description
active boolean Optional. Enables/Disables the rendering of snowflakes
activeMonths Array<Number> Optional. Enables/Disables the rendering of snowflakes based on the specific month

activeMonths only applies if active is set to true

activeMonths={[ 1 ]} = January and so on.

Usage/Examples

Always Snowing

<script>
    import SvelteSnow from "svelte-snow";
</script>

<SvelteSnow>
    <!-- your content goes here -->
</SvelteSnow>

Snow Disabled

<script>
    import SvelteSnow from "svelte-snow";
</script>

<SvelteSnow active={false}>
    <!-- your content goes here -->
</SvelteSnow>

Snowing from December till February

<script>
    import SvelteSnow from "svelte-snow";
</script>

<SvelteSnow activeMonths={[ 1, 2, 12 ]}>
    <!-- your content goes here -->
</SvelteSnow>

Readme

Keywords

none

Package Sidebar

Install

npm i svelte-snow

Weekly Downloads

2

Version

1.0.1

License

none

Unpacked Size

5.97 kB

Total Files

7

Last publish

Collaborators

  • unfield