UNPKG

@vaadin/field-base

Version:
30 lines (26 loc) 908 B
/** * @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 { DisabledMixinClass } from '@vaadin/a11y-base/src/disabled-mixin.js'; import type { DelegateStateMixinClass } from '@vaadin/component-base/src/delegate-state-mixin.js'; import type { InputMixinClass } from './input-mixin.js'; /** * A mixin to manage the checked state. */ export declare function CheckedMixin<T extends Constructor<object>>( base: T, ): Constructor<CheckedMixinClass> & Constructor<DelegateStateMixinClass> & Constructor<DisabledMixinClass> & Constructor<InputMixinClass> & T; export declare class CheckedMixinClass { /** * True if the element is checked. */ checked: boolean; protected _toggleChecked(checked: boolean): void; }