Toggle
The Toggle component is used to Toggle state.
1. Import
KUMUI exports 1 Toggle-related components:
import { Toggle } from "@rohitgadekar/kimui";
2. Usage
3. API
3.1 Toggle
| Attribute | Type | Description | Default |
|---|---|---|---|
| children | React.ReactNode | The content to display inside the toggle. Typically text or a label. | Toggle |
| isChecked | boolean | Controls the checked state of the toggle. If true, the toggle is in the "on" state. | false |
| onChange | Function | Callback function triggered when the toggle state changes. Receives the new value (true or false). | - |