> ## Documentation Index
> Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attiva/Disattiva

<Tabs>
  <Tab title="Utilizzo">
    ```jsx theme={null}
    import { Toggle } from "twenty-ui/input";

    export const MyComponent = () => {
      return (
        <Toggle
        value = {true}
        onChange = {()=>console.log('On Change event')}
        color="green"
        toggleSize = "medium"
        />
      );
    };
    ```
  </Tab>

  <Tab title="Proprietà">
    | Proprietà              | Tipo     | Descrizione                                                                                                           | Predefinito |
    | ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------- | ----------- |
    | valore                 | booleano | Lo stato attuale dell'interruttore                                                                                    | `falso`     |
    | onChange               | funzione | Funzione di callback attivata quando lo stato dell'interruttore cambia                                                |             |
    | colore                 | stringa  | Colore dell'interruttore quando è                                                                                     | colore blu  |
    | dimensioneInterruttore | stringa  | Dimensione dell'interruttore, che influisce sia sull'altezza sia sulla larghezza. Ha due opzioni: `small` e `medium`. | medio       |
  </Tab>
</Tabs>
