<Toggle>
ComponentA simple toggle, used primarily in consent manager.
Name | Description |
---|---|
enabled boolean | Whether the toggle is on or off |
onChange function | Function that will be called when the toggle is changed to on or off |
You can pass the enabled
prop in to toggle.
You can also pass the onChange
function to react when the toggle changes state