> ## 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.

# Toggle

<Tabs>
  <Tab title="Usage">
    ```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="Props">
    | Props      | Type     | Description                                                                                 | Default      |
    | ---------- | -------- | ------------------------------------------------------------------------------------------- | ------------ |
    | value      | boolean  | The current state of the toggle                                                             | `false`      |
    | onChange   | function | Callback function triggered when the toggle state changes                                   |              |
    | color      | string   | Color of the toggle when it\\                                                               | s blue color |
    | toggleSize | string   | Size of the toggle, affecting both height and weight. Has two options: `small` and `medium` | medium       |
  </Tab>
</Tabs>
