@vaadin/field-base
Version:
Vaadin field base mixins
26 lines (20 loc) • 775 B
TypeScript
/**
* @license
* Copyright (c) 2021 - 2025 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import type { Constructor } from '@open-wc/dedupe-mixin';
import type { LabelController } from './label-controller.js';
/**
* A mixin to provide label via corresponding property or named slot.
*/
export declare function LabelMixin<T extends Constructor<HTMLElement>>(base: T): Constructor<LabelMixinClass> & T;
export declare class LabelMixinClass {
/**
* String used for a label element.
*/
label: string | null | undefined;
protected readonly _labelNode: HTMLLabelElement;
protected _labelController: LabelController;
protected _labelChanged(label: string | null | undefined): void;
}