# uui-toggle

[![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-toggle?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-toggle)

Umbraco style toggle component.

### See it in action

Preview the component on [Storybook](https://uui.umbraco.com/?path=/docs/uui-toggle--docs)

## Installation

## ES imports

```zsh
npm i @umbraco-ui/uui-toggle
```

Import the registration of `<uui-toggle>` via:

```javascript
import '@umbraco-ui/uui-toggle';
```

When looking to leverage the `UUIToggleElement` base class as a type and/or for extension purposes, do so via:

```javascript
import { UUIToggleElement } from '@umbraco-ui/uui-toggle';
```

## Usage

```html
<uui-toggle label="Toggle" value="bike"></uui-toggle>
```
