@react-hook/switch

A React hook for controlling a boolean value with toggle, on, and off callbacks

Browse on unpkg