Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lete114/sveltejs-show
Just like the v-show in vuejs
https://github.com/lete114/sveltejs-show
Last synced: 14 days ago
JSON representation
Just like the v-show in vuejs
- Host: GitHub
- URL: https://github.com/lete114/sveltejs-show
- Owner: Lete114
- License: mit
- Created: 2022-12-30T07:19:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T08:08:26.000Z (almost 2 years ago)
- Last Synced: 2024-10-22T08:53:51.614Z (22 days ago)
- Language: TypeScript
- Homepage: https://svelte.dev/repl/ae7c48fefd2a42f38a603be31324e142?version=3.55.0
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```bash
npm install sveltejs-show
```## Usage
```svelte
import show from 'sveltejs-show'
let isShow = false{isShow=!isShow}}>{isShow}
Hello world!
```