Files
twenty/packages/twenty-docs/l/pt/twenty-ui/input/toggle.mdx
T
cd73088be6 i18n - docs translations (#19925)
Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
2026-04-21 10:57:27 +02:00

39 lines
1.2 KiB
Plaintext

---
title: Alternar
icon: toggle-on
---
<Tabs>
<Tab title="Uso">
```jsx
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="Propriedades">
| 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 |
</Tab>
</Tabs>