--- title: Alternar icon: toggle-on --- ```jsx import { Toggle } from "twenty-ui/input"; export const MyComponent = () => { return ( console.log('On Change event')} color="green" toggleSize = "medium" /> ); }; ``` | Propriedades | Tipo | Descrição | Padrão | | --------------- | -------- | --------------------------------------------------------------------------------------------- | -------- | | valor | booleano | O estado atual da alternância | `falso` | | onChange | função | Função de retorno de chamada acionada quando o estado da alternância muda | | | cor | string | Color of the toggle when it\ | cor azul | | tamanhoAlternar | string | Size of the toggle, affecting both height and weight. Possui duas opções: `pequeno` e `médio` | médio |