Skip to main content
Version: 1.x

@microsoft/fast-components > fastButton

fastButton variable

A function that returns a Button registration for configuring the component with a DesignSystem. Implements buttonTemplate

Signature:
fastButton: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
baseName: string;
baseClass: typeof FoundationButton;
template: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ViewTemplate<FoundationButton, any>, import("@microsoft/fast-foundation").ButtonOptions>;
styles: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ElementStyles, import("@microsoft/fast-foundation").ButtonOptions>;
shadowOptions: {
delegatesFocus: true;
};
}> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
baseName: string;
baseClass: typeof FoundationButton;
template: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ViewTemplate<FoundationButton, any>, import("@microsoft/fast-foundation").ButtonOptions>;
styles: import("@microsoft/fast-foundation").FoundationElementTemplate<import("@microsoft/fast-element").ElementStyles, import("@microsoft/fast-foundation").ButtonOptions>;
shadowOptions: {
delegatesFocus: true;
};
}, typeof Button>

Remarks

Generates HTML Element: <fast-button>

delegatesFocus