# @vaadin/switch

A binary on/off switch control for a single setting.

> ⚠️ This component is experimental and the API may change. In order to use it, enable the feature flag by setting `window.Vaadin.featureFlags.switchComponent = true`.

[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/components/switch)

[![npm version](https://badgen.net/npm/v/@vaadin/switch)](https://www.npmjs.com/package/@vaadin/switch)

```html
<vaadin-switch label="Notifications"></vaadin-switch>
```

## Installation

Install the component:

```sh
npm i @vaadin/switch
```

Once installed, import the component in your application:

```js
import '@vaadin/switch';
```

## License

Apache License 2.0
