--- title: Canvia image: /images/user-guide/table-views/table.png --- Header ```jsx import { Toggle } from "twenty-ui/input"; export const MyComponent = () => { return ( console.log('On Change event')} color="green" toggleSize = "medium" /> ); }; ``` | Props | Tipus | Descripció | Per defecte | | --------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------ | | valor | boolean | The current state of the toggle | `fals` | | onChange | funció | Funció de retorn activada quan l'estat del commutador canvia | | | color | cadena | Color of the toggle when it\ | s blue color | | midaInterruptor | cadena | Mida del commutador, que afecta tant l'altura com l'amplada. Té dues opcions: `petit` i `mitjà` | mitjà |