Files
twenty/packages/twenty-docs/l/pt/twenty-ui/input/toggle.mdx
T
github-actions[bot] e0d4492013 i18n - docs translations (#17434)
Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
2026-01-26 09:06:17 +01:00

37 lines
1.4 KiB
Plaintext

---
title: Alternar
image: /images/user-guide/table-views/table.png
---
<Frame>
<img src="/images/user-guide/table-views/table.png" alt="Cabeçalho" />
</Frame>
<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>