@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
49 lines • 2.01 kB
TypeScript
/**
* @license
* Copyright 2025 Kai-Orion & Sandlada
* SPDX-License-Identifier: MIT
*/
import { LitElement, type PropertyValues } from 'lit';
import { createValidator, getValidityAnchor } from '../../utils/behaviors/constraint-validation';
import { RadioValidator } from '../../utils/behaviors/validators/radio-validator';
import { getFormState, getFormValue } from '../../utils/form/form-associated';
declare global {
interface HTMLElementTagNameMap {
"mdc-radio-button": RadioButton;
}
}
declare const CHECKED: unique symbol;
declare const RadioButton_base: import("../../utils/behaviors/mixin").MixinReturn<import("../../utils/behaviors/mixin").MixinReturn<import("../../utils/behaviors/mixin").MixinReturn<(abstract new (...args: any[]) => import("../../utils/behaviors/element-internals").WithElementInternals) & typeof LitElement & import("../../utils/form/form-associated").FormAssociatedConstructor, import("../../utils/form/form-associated").FormAssociated>, import("../../utils/behaviors/constraint-validation").ConstraintValidation>>;
/**
*
* @version
* Material Design 3 - Expressive
*
* @link
* https://m3.material.io/components/radio-button/specs
*/
export declare class RadioButton extends RadioButton_base {
static styles: import("lit").CSSResult;
disabled: boolean;
name: string;
[CHECKED]: boolean;
private readonly maskId;
private readonly selectionController;
get checked(): boolean;
set checked(value: boolean);
required: boolean;
value: string;
private containerElement;
constructor();
protected willUpdate(changedProperties: PropertyValues<this>): void;
protected render(): unknown;
private handleClick;
[getFormValue](): string | null;
[getFormState](): string;
formResetCallback(): void;
formStateRestoreCallback(state: string): void;
[createValidator](): RadioValidator;
[getValidityAnchor](): HTMLElement | null;
}
export {};
//# sourceMappingURL=radio-button.d.ts.map