Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beyonk-adventures/svelte-toggle
Toggle component for Svelte
https://github.com/beyonk-adventures/svelte-toggle
beyonk boolean checkbox svelte svelte-component svelte-v3 switch toggle
Last synced: 3 months ago
JSON representation
Toggle component for Svelte
- Host: GitHub
- URL: https://github.com/beyonk-adventures/svelte-toggle
- Owner: beyonk-group
- Created: 2019-08-21T21:13:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T14:35:40.000Z (over 1 year ago)
- Last Synced: 2024-04-13T18:11:45.153Z (7 months 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
- awesome-svelte - svelte-toggle - Basic toggle component with styling. _(pre-v5)_ (Utilities / Forms)
README
# Svelte Toggle
by [@antony](https://github.com/antony)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) [![CircleCI](https://circleci.com/gh/beyonk-adventures/svelte-toggle.svg?style=shield)](https://circleci.com/gh/beyonk-adventures/svelte-toggle) [![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](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
```