Theme

npm_versionnpm Paragon package page

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-account22.9.02
frontend-app-admin-portal21.13.138
frontend-app-authn22.10.02
frontend-app-communications22.7.02
frontend-app-course-authoring22.8.160
frontend-app-discussions22.7.09
frontend-app-enterprise-public-catalog21.13.11
frontend-app-learner-dashboard22.9.03
frontend-app-learner-portal-enterprise21.13.116
frontend-app-learner-record22.10.01
frontend-app-learning22.8.14
frontend-app-support-tools21.13.14
frontend-component-header-edx21.13.11
frontend-component-header22.10.01
frontend-lib-special-exams22.7.03
prospectus20.46.22