UNPKG

@lucidclient/elements

Version:

A lightweight, reactive UI library that bridges HTML and JavaScript through attributes, powered by SolidJS. Adds reactive state and dynamic behaviors to markup while maintaining simplicity.

34 lines (29 loc) 1 kB
import { H as Handler } from './handlers-BYlZMRtR.js'; import './directives-DK-Zzqy-.js'; /** * Registers the event handler which supports all event listeners. These can be used like so: * - data-handler--event.click * - data-handler--event.scroll * - data-handler--event.keydown * - data-handler--event.keyup * * Any actions assigned to these events will have the Event as the first argument. */ declare const eventsHandler: Handler; /** * Registeres the DOM handler whcih supports the following attributes/features: * - data-handler--dom.text * - data-handler--dom.html * - data-handler--dom.value * - data-handler--dom.focus * - data-handler--dom.blur * - data-handler--dom.scrollto */ declare const domHandler: Handler; /** * Registers the trap handler. These can be used like so: * - data-handler--trap="scope:$state" * - data-handler--trap="scope:@action" */ declare const trapHandler: Handler; export { domHandler as dom, eventsHandler as events, trapHandler as trap };