# Toggle
> AstrolToggle is an accessible switch to turn an option on or off with a click or from the keyboard.
Source page: https://doc.astrolui.com/form/toggle
## 1. Demo AstrolToggle
```razor
@using Astrol.Component.Basic.Form
@code {
```
```csharp
private bool value = true;
}
```
### Supported parameters
- Value **(bool)** / **ValueChanged**, switch state (default **false**); supports **@bind-Value**.
- OnChange **(EventCallback)**, raised when the state changes, with the new value.
- Object **(object)**, associated object returned in **OnChangeObject** (useful in lists or grids).
- OnChangeObject **(EventCallback<(object?, bool)>)**, raised when the state changes, with the associated object and the new value.
- Disable **(bool)**, disables the switch (default **false**).
- Id **(string)**, HTML id of the button; lets you link a **