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-account23.13.02
frontend-app-admin-portal22.18.049
frontend-app-enterprise-public-catalog22.17.01
frontend-app-discussions23.4.515
frontend-app-learner-record23.13.01
frontend-app-learning23.4.52
frontend-app-learner-record23.13.01
frontend-app-publisher23.6.11
frontend-app-support-tools23.4.22