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.

8 lines (5 loc) 195 B
/** * Prefix set to all attributes. */ const PREFIX = document.documentElement.getAttribute("data-easy-toggle-state-custom-prefix") || "toggle"; export const getPrefix = () => PREFIX;