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

---------

Co-authored-by: Abdul Rahman <ar5438376@gmail.com>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2025-11-18 17:21:48 +01:00

40 lines
1.3 KiB
Plaintext

---
title: 切り替え
image: /images/user-guide/table-views/table.png
---
<Frame>
<img src="/images/user-guide/table-views/table.png" alt="Header" />
</Frame>
<Tabs>
<Tab title="Usage">
```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="Props">
| プロパティ | タイプ | 説明 | デフォルト |
| -------- | ------ | --------------------------------------------------------------------------- | ----- |
| 値 | ブール型 | トグルの現在の状態 | `偽` |
| onChange | 機能 | Callback function triggered when the toggle state changes | |
| カラー | string | Color of the toggle when it\ | 青色 |
| トグルサイズ | string | トグルのサイズは、高さと幅の両方に影響します。 トグルのサイズは、高さと幅の両方に影響します。 オプションは2つ:`small` と `medium` | 中 |
</Tab>
</Tabs>