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

Co-authored-by: github-actions <github-actions@twenty.com>
2026-06-29 05:04:26 +02:00

39 lines
1.3 KiB
Plaintext

---
title: 切り替え
icon: toggle-on
---
<Tabs>
<Tab title="使用方法">
```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="プロパティ">
| プロパティ | タイプ | 説明 | デフォルト |
| -------- | ------ | --------------------------------------------------------------------------- | ----- |
| 値 | ブール型 | トグルの現在の状態 | `偽` |
| onChange | 機能 | トグルスイッチの状態が変化した際にトリガーされるコールバック関数 | |
| カラー | string | トグルの色\ | 青色 |
| トグルサイズ | string | トグルのサイズは、高さと幅の両方に影響します。 トグルのサイズは、高さと幅の両方に影響します。 オプションは2つ:`small` と `medium` | 中 |
</Tab>
</Tabs>