UNPKG

easy-toggle-state

Version:

A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time.

6 lines (5 loc) 120 B
/** * Hooks */ export const TOGGLE_AFTER = new Event("toggleAfter"), TOGGLE_BEFORE = new Event("toggleBefore");