Theme

PlaygroundBeta

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.28.51
frontend-app-admin-portal20.26.312
frontend-app-authn20.34.02
frontend-app-communications20.30.12
frontend-app-discussions20.15.09
frontend-app-enterprise-public-catalog20.29.01
frontend-app-learner-dashboard20.32.03
frontend-app-learner-portal-enterprise20.31.110
frontend-app-learning20.28.41
frontend-lib-special-exams20.22.44
prospectus20.32.32