https://github.com/beyonk-group/svelte-toggle
Toggle component for Svelte
https://github.com/beyonk-group/svelte-toggle
beyonk boolean checkbox svelte svelte-component svelte-v3 switch toggle
Last synced: about 1 month ago
JSON representation
Toggle component for Svelte
- Host: GitHub
- URL: https://github.com/beyonk-group/svelte-toggle
- Owner: beyonk-group
- Created: 2019-08-21T21:13:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T14:35:40.000Z (over 2 years ago)
- Last Synced: 2024-04-13T18:11:45.153Z (about 1 year ago)
- Topics: beyonk, boolean, checkbox, svelte, svelte-component, svelte-v3, switch, toggle
- Language: Svelte
- Size: 940 KB
- Stars: 22
- Watchers: 3
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Svelte Toggle
by [@antony](https://github.com/antony)
[](http://standardjs.com) [](https://circleci.com/gh/beyonk-adventures/svelte-toggle) [](https://svelte.dev)
A toggle component for Svelte.
## Installation
`npm i -D @beyonk/svelte-toggle`
## Usage
Basic:
```
import Toggle from '@beyonk/svelte-toggle'
let checked = false
```
## Labels
Specify both on and off labels
```