sveltejs-show
v1.0.0
Published
Just like the v-show in vuejs
Readme
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-showUsage
<script>
import show from 'sveltejs-show'
let isShow = false
</script>
<button on:click={()=>{isShow=!isShow}}>{isShow}</button>
<h1 use:show={isShow}>Hello world!</h1>