SwitchCard
import SwitchCard from "@intility/bifrost-react/SwitchCard";For convenience, <SwitchCard> is provided as an alias for
<CheckboxCard type="switch">. Otherwise, it functions
exactly the same as <CheckboxCard>.
Basic usage
<SwitchCard label="Switch card">
Users often expect checkboxes to be a part of a form with a submit button,
while switches are usually expected to be automatically 'saved'.
</SwitchCard>
See <CheckboxCard> for more examples.
Sandbox
You can bind a SwitchCard to a boolean state using the checked prop and update
your state every time the onChange event is triggered.