Theme

npm_versionnpm Paragon package page

useToggle

Toggle a boolean value on or off with handlers

const [state, setOn, setOff, toggle] = useToggle(initialState, handlers);

Sample Usage

Any Paragon component or export may be added to the code example.

Basic Usage

Any Paragon component or export may be added to the code example.

Usage Insights#

useToggle

Project NameParagon VersionInstance Count
frontend-app-account20.44.01
frontend-app-admin-portal20.39.212
frontend-app-authn20.40.22
frontend-app-communications20.34.02
frontend-app-discussions20.15.09
frontend-app-enterprise-public-catalog20.29.01
frontend-app-learner-dashboard20.32.03
frontend-app-learner-portal-enterprise20.36.010
frontend-app-learning20.28.42
frontend-lib-special-exams20.29.04
prospectus20.32.31