A switch component that you can use in a React-Final-Form.
It has two modes:
- editing a boolean field, where a single switch is shown and the value is toggled when the switch is clicked,
- editing an array of arbitrary values, where the value for the field will be an array of unordered values; weather a value is included in the array or not is indicated by the switch being on or off.
Run pnpm nx test switch
to execute the unit tests via
Jest.