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

22 lines (21 loc) 944 B
import { LitElement, TemplateResult } from 'lit'; type Constructor<T = {}> = new (...args: any[]) => T; export declare class LabelMixinInterface { /** * Label to be used for aria-label and potentially as visual label for some components * @type {string} * @prop * @attr */ label: string; protected renderLabel(): TemplateResult; } /** * This mixin provides label functionality to other components. In the mixed component the label can be provided either via reactive label property, or through slot that this mixin contains. You can style the label template through .label selector. * * @param {string} labelSlotName - Name that will be assigned for the label slot * @param {Object} superClass - superclass to be extended. * @mixin */ export declare const LabelMixin: <T extends Constructor<LitElement>>(labelSlotName: string | null, superClass: T) => Constructor<LabelMixinInterface> & T; export {};