@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.
23 lines (20 loc) • 591 B
text/typescript
import { g as HandlerSpecifiersMap } from './directives-DK-Zzqy-.cjs';
type HandlerInitOptions = {
partial: boolean;
target?: Element;
};
type Handler = {
/**
* A unique namespace for the handler
*/
namespace: string;
/**
* Called on initialisation of Elements, or on sync
*/
initialise: (attributes: HandlerSpecifiersMap, options: HandlerInitOptions) => () => void;
};
type Handlers = Map<string, {
handler: Handler;
dispose?: ReturnType<Handler["initialise"]>;
}>;
export type { Handler as H, Handlers as a, HandlerInitOptions as b };