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

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/22317?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->

Co-authored-by: github-actions <github-actions@twenty.com>
2026-06-29 17:12:55 +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 | Cor do alternador quando estiver \ | cor azul |
| tamanhoAlternar | string | Tamanho do alternador, afetando a altura e o peso. Possui duas opções: `pequeno` e `médio` | médio |
</Tab>
</Tabs>