UNPKG

@umbraco-ui/uui-base

Version:

This is a base dependency for Umbraco UI components. It contains mixins, animations, abstract base classes, UUIEvent base class, and universal types for properties shared by different components

9 lines (8 loc) 570 B
/** * Defensive definition of a custom element. It only defines the element if it has a valid name and isn't already defined. * @func defineElement * @param {string} name - Name for the new custom element. Note that custom element names must contain a hyphen. * @param {string} constructor - Constructor for the new custom element. * @param {string} [options] - Object that controls how the element is defined. */ export declare function defineElement(name: string, options?: ElementDefinitionOptions | undefined): (constructor: CustomElementConstructor) => void;