---
title: Attiva/Disattiva
image: /images/user-guide/table-views/table.png
---
```jsx
import { Toggle } from "twenty-ui/input";
export const MyComponent = () => {
return (
console.log('On Change event')}
color="green"
toggleSize = "medium"
/>
);
};
```
| Props | Tipo | Descrizione | Predefinito |
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| valore | booleano | Lo stato attuale dell'interruttore | `falso` |
| onChange | funzione | Funzione di callback attivata quando lo stato dell'interruttore cambia | |
| colore | string | Colore dell'interruttore quando รจ | colore blu |
| dimensioneInterruttore | string | Size of the toggle, affecting both height and weight. Ha due opzioni: `small` e `medium`. | medio |