@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
35 lines • 1.17 kB
TypeScript
import { type FormSubmitter, type FormSubmitterType } from '../../utils/controller/form-submitter';
import { BaseButton } from './base-button';
/**
* The normal Button class does not implement the function of the anchor element.
* Because you only need to wrap the Button component with <a></a>.
*
* @see
* Note:
* Please set the tabindex of the a element that wraps the button component to -1.
* ```html
* <a tabindex="-1" href="#a">
* <mdc-button shape="square">
* <span>Link Button</span>
* </mdc-button>
* </a>
* ```
*
* @version
* Material Design 3 - Expressive
*
* @link
* https://m3.material.io/components/buttons/overview
* https://www.figma.com/design/4GM7ohCF2Qtjzs7Fra6jlp/Material-3-Design-Kit--Community-?node-id=57994-2227&t=kLfic7eA8vKtkiiO-0
*/
export declare class MDCButton extends BaseButton implements FormSubmitter {
static styles: import("lit").CSSResult[];
static readonly formAssociated = true;
get name(): string;
set name(name: string);
get form(): HTMLFormElement | null;
type: FormSubmitterType;
value: string;
disabled: boolean;
}
//# sourceMappingURL=button.d.ts.map