# Toggle

<figure><img src="https://598543987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3nnlrjn6TtcCpL6SXFhI%2Fuploads%2FxTLFIveLZnPmSQqjfxeJ%2FScreenshot%202022-10-31%20at%201.40.36%20PM.png?alt=media&#x26;token=44e8fd12-dc59-4f37-bcf2-7a7bf098c801" alt=""><figcaption></figcaption></figure>

you can use `Toggle::class` to build a bool input like this

```php
Toggle::make('name');
```

this class works with vue `ViltSwitch.vue`

### Custom Colors

you can change the color of the toggle to fit your request like

```php
->color('primary');
```
