Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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

```