--- title: Przełącznik 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" /> ); }; ``` | Właściwości (Props) | Typ | Opis | Domyślny | | -------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------- | ---------- | | wartość | boolean | Aktualny stan przełącznika | `fałsz` | | onChange | funkcja | Callback function triggered when the toggle state changes | | | kolor | ciąg znaków | Color of the toggle when it\ | niebieskim | | rozmiar przełącznika | ciąg znaków | Rozmiar przełącznika, wpływający na wysokość i szerokość. Posiada dwie opcje: `mały` i `średni` | średni |