sveltejs-show
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

SvelteJS-Show

SvelteJS-Show is the equivalent of v-show in VueJS will hide the element without adding any div block or destroying the component.

Installation

npm install sveltejs-show

Usage

<script>
  import show from 'sveltejs-show'
  let isShow = false
</script>

<button on:click={()=>{isShow=!isShow}}>{isShow}</button>
<h1 use:show={isShow}>Hello world!</h1>

Readme

Keywords

Package Sidebar

Install

npm i sveltejs-show

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

2.4 kB

Total Files

5

Last publish

Collaborators

  • lete114