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.44.01
frontend-app-admin-portal20.39.212
frontend-app-authn20.45.52
frontend-app-communications20.45.02
frontend-app-course-authoring20.35.13
frontend-app-discussions20.44.09
frontend-app-enterprise-public-catalog20.29.01
frontend-app-learner-dashboard20.32.03
frontend-app-learner-portal-enterprise20.45.110
frontend-app-learner-record20.45.01
frontend-app-learning20.28.43
frontend-lib-special-exams20.29.04
prospectus20.45.25