--- title: Basculer --- ```jsx import { Toggle } from "twenty-ui/input"; export const MyComponent = () => { return ( console.log('On Change event')} color="green" toggleSize = "medium" /> ); }; ``` | Propriétés | Type | Description | Par défaut | | -------------- | -------- | ------------------------------------------------------------------------------------------ | -------------------- | | valeur | booléen | The current state of the toggle | `faux` | | onChange | fonction | Callback function triggered when the toggle state changes | | | couleur | chaîne | Color of the toggle when it\ | est de couleur bleue | | tailleBasculer | chaîne | Size of the toggle, affecting both height and weight. A deux options : `small` et `medium` | moyen |