Provdes a boolean state variable with a toggle utility function.
toggle
The initial value or a function that returns the initial value of the isOn variable.
isOn
Provdes a boolean state variable with a
toggleutility function.