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-account20.46.31
frontend-app-admin-portal20.46.322
frontend-app-authn20.46.22
frontend-app-communications20.46.22
frontend-app-course-authoring20.46.214
frontend-app-discussions20.44.09
frontend-app-enterprise-public-catalog20.46.31
frontend-app-learner-dashboard20.46.23
frontend-app-learner-portal-enterprise20.45.410
frontend-app-learner-record20.46.31
frontend-app-learning20.46.02
frontend-app-support-tools20.46.01
frontend-component-header-edx21.5.61
frontend-component-header21.5.61
frontend-lib-special-exams20.44.04
prospectus20.46.22