UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

15 lines (14 loc) 606 B
import { MitosisComponent, MitosisNode, MitosisPlugin, OnEventHook } from '..'; export declare const getOnEventHandlerName: (hook: OnEventHook) => string; export declare const getOnEventHooksForNode: ({ node, component, }: { node: MitosisNode; component: MitosisComponent; }) => OnEventHook[]; /** * Adds event handlers from `onEvent` hooks to the appropriate node's bindings. * Only works with frameworks that support custom events in their templates. */ export declare const processOnEventHooksPlugin: (args?: { setBindings?: boolean; includeRootEvents?: boolean; }) => MitosisPlugin;