@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
20 lines (19 loc) • 618 B
TypeScript
import { LitElement } from 'lit';
type Constructor<T = {}> = new (...args: any[]) => T;
export declare class ActiveMixinInterface {
/**
* Set this boolean to true for then the related composition is sorted.
* @type {boolean}
* @attr
* @prop
*/
active: boolean;
}
/**
* This mixin provides functionality to other components to be active using a common `active` property.
*
* @param {Object} superClass - superclass to be extended.
* @mixin
*/
export declare const ActiveMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<ActiveMixinInterface> & T;
export {};