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.0.02
frontend-app-admin-portal21.13.130
frontend-app-authn22.6.02
frontend-app-communications22.0.02
frontend-app-course-authoring22.4.062
frontend-app-discussions22.1.19
frontend-app-enterprise-public-catalog21.13.11
frontend-app-learner-dashboard22.4.03
frontend-app-learner-portal-enterprise21.13.114
frontend-app-learner-record22.6.01
frontend-app-learning22.3.03
frontend-app-support-tools20.46.03
frontend-component-header-edx21.11.41
frontend-component-header22.6.01
frontend-lib-special-exams22.2.03
prospectus20.46.22